【Python3】Python脚本执行Linux命令



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

 

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