import osos.system("dir")
将此处的UTF-8修改为GBK重新run即可;
因为控制台输出的时候,我们windows平台默认的是GBK编码,而此处设置为UTF-8编码,所以会产生乱码问题。