【Python3】Python脚本执行Linux命令 import os # rm /home/file commmand='rm /home/%s'%('file')os.popen(command)