[問題] Ipython不同版本差異性?

看板Python作者 (HIHIHI)時間11年前 (2013/05/09 18:36), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
小弟在兩台電腦(win7,win8)上安裝不同版本的Ipython, 但執行結果有些差異性,想請問該設什麼參數讓B電腦與A一致 A電腦: In[1]:x = '我' In[2]:print x Out:我 B電腦: In[1]:x = '我' In[2]:print x.decode('utf8','ignore').encode('big5','ignore') Out:我 ========================== A電腦: In[1]: print 'abc' Out:abc B電腦; In [1]: print 'abc' IndentationError: unexpected indent If you want to paste code into IPython, try the %paste and %cpaste magic functions. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.245.64.168

05/09 18:59, , 1F
你好,你出問題的那一行,前面多了一個空格。
05/09 18:59, 1F
文章代碼(AID): #1HYtn3x6 (Python)