Python CMD 中文乱码处理

抬头加 #coding=utf-8

引入 import sys

type=sys.getfilesystemencoding()

然后给有中文输出的地方加上  .decode('utf-8').encode(type)

例如:

Python CMD 中文乱码处理

完成

Python CMD 中文乱码处理

相关文章: