【Python3】Python脚本执行Linux命令



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

 

 
 
posted @ 2017-08-11 16:19  生信杰克  阅读(3183)  评论(0编辑  收藏  举报