报错: SyntaxError: Non-ASCII character 概意思是,默认文件是ASCII格式,需要更改文件编码,操作是在文件首行加上 #!/usr/bin/python # -*- coding:utf8 -*- 报错 :TypeError: unicode argument expected, got 'str' if your environment is Python2.7, you can change code :import ioandoutput_stream·=i…