作者tumc (HIHIHI)
看板Python
标题[问题] Ipython 语系问题?
时间Thu May 9 18:36:49 2013
小弟在两台电脑(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
1F:推 timTan:你好,你出问题的那一行,前面多了一个空格。 05/09 18:59