[root@localhost ~]# python test.py请输入qwerTraceback (most recent call last): File "test.py", line 3, in <module> a = input('请输入') File "<string>", line 1, in <module>NameError: name 'qwer' is not definedtest.py文件内容如下[root@localhost ~]# cat test.py...【阅读全文】
[root@server testpython]# python server.py File "server.py", line 8SyntaxError: Non-ASCII character '\xe7' in file server.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details报错原因:因为Python在默认状态下不支持源文件中的编码所致解决办法:#!/us...【阅读全文】