@julyclyde 类似于这样: #coding=utf-8 #中文 print "aa" 会报这样的错误: File "/Users/inv/PycharmProjects/s_scan/test.py", line 3 SyntaxError: Non-ASCII character '\xe4' in file /Users/inv/PycharmProjects/s_scan/test.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details