python基础--系统执行指令

1.在cmd中我们可以运行好多好多的system指令,在Python中如何使用这些指令呢?,使用import函数 import os os.system(“指令”) 2.关闭的话 task kill /f /im 可执行文件.exe 3.遇到乱码,需要设置一下,file--settings--file encoding,然后把project encoding换成GBK就好了,汉字就能正常显示了
相关文章
相关标签/搜索