尝试使用python 的os.system来执行系统命令,发现控制台打印的中显示为乱码。怎么解决呢?
python代码入下
import os #导入os模块
os.system(ipconfig) #控制台打印ip地址运行结果入下:
Windows IP ��࿿…
��ԭ���⣺Apple is adding 1,200 employees in Qualcomm��s backyard as their legal dispute wages on�� ���Ƽ�Ѷ3&a…