要运行外部命令而不与其交互,例如使用 os.system() ,请使用 call() 函数。 import subprocess # Simple command subprocess.call('ls -l', shell=True) $ python ...
確定! 回上一頁