python程序不支持中文
SyntaxError: Non-ASCII character '\xe8' in file delete.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
运行程序报上面的错误
解决方法:
1.在程序开头加入#coding:utf-8
#!/usr/bin/env python
# coding: utf-8
SyntaxError: Non-ASCII character '\xe8' in file delete.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
运行程序报上面的错误
解决方法:
1.在程序开头加入#coding:utf-8
#!/usr/bin/env python
# coding: utf-8