读写文件的时候多加个参数,open('test.txt', 'r', encoding='utf-8') 文件头不再需要# coding: utf-8来指定文件编码如果要在python2的py文件里面写中文,则必须要添加 ...
確定! 回上一頁