我想在python中使用系统命令.例如,我们在perl:system中有这个函数("ls -la"); 并运行ls -la python中的系统函数是什么?提前致谢 .
python function
您可以将这个微小的代码转换为Bash代码:
user/bin/perl sleep(300); system("killall -9 perl &"); sleep(5)
bash perl
bash ×1
function ×1
perl ×1
python ×1