默认使用ASCII编码,改成utf8
#!/usr/bin/env python # -*- coding:utf8 -*- #coding:utf-8
Python 让文件代码支持汉字
原文:https://www.cnblogs.com/linyouyi/p/11409747.html