37,719
社区成员
发帖
与我相关
我的任务
分享
#!/usr/bin/env python
# -*- coding: utf-8 -*-
print "这里"
SyntaxError: Non-ASCII character '\xe8' in file testCn.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
D:\Documents\myrep\lang\py>python testCn.py
杩欓噷
File "d:\Documents\myrep\lang\py\testCn.py", line 0
SyntaxError: 'gbk' codec can't decode bytes in position 531-532: illegal multibyte sequenc
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print "这里"
这里
>>>
这也太奇怪了吧