我试图cmd.exe带着争论逃跑ls。
cmd.exe
ls
我使用了下面的代码
import subprocess subprocess.call(['C:\Windows\System32\cmd.exe', 'ls'])
执行后cmd.exe打开但不ls作为输入
python python-2.7
python ×1
python-2.7 ×1