【Python3】Python脚本执行Linux命令



import os
# rm /home/file
commmand='rm /home/%s'%('file')
os.popen(command)


 
 
原文地址:https://www.cnblogs.com/shengxinjack/p/7346528.html