windows上如果python2.7出现print u'中文'
报错,尝试将代码改为print u' 中文'
print u'\u0110 \u0110'
结果:
(a character cmd can't display) (character what i want)
Traceback (most recent call last):
File "test.py", line 26, in <module>
print u'\u0110 \u0110'
IOError: [Errno 2] No such file or directory
修改为:
print u' \u0110 \u0110'