So führen Sie den Befehl Linux in Python aus
import os
cmd = 'your command here'
os.system(cmd)
Pinksheep
import os
cmd = 'your command here'
os.system(cmd)
import subprocess
subprocess.call("command1")
subprocess.call(["command1", "arg1", "arg2"])