先来看看python的版本: >>> import sys >>> sys.version '2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]' (一) 用记事本创建一个文件ChineseTest.py,默认ANSI: s = “中文” print s 测试一下瞧瞧: E:\Project\Python\Test>python ChineseTest.py File “ChineseTest.py”, line 1 SyntaxError: Non-ASCII character '\xd6' in fi