Python3 读取中文输出乱码解决
读取时设置 encoding
encoding
with open('test.txt', encoding='utf-8') as f: lines = f.readlines() for line in lines: print(line)
上一篇 给 Jupyter 添加书签目录(TOC)
下一篇 在 Anaconda 中用命令行安装 Python2.7.3