清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
在python脚本内运行linux命令
#/usr/bin/env python import subprocess class RunCmd(object): def cmd_run(self, cmd): self.cmd = cmd subprocess.call(self.cmd, shell=True) #Sample usage a = RunCmd() a.cmd_run('ls -l')
2015/06/20 30996
清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
在python脚本内运行linux命令
#/usr/bin/env python import subprocess class RunCmd(object): def cmd_run(self, cmd): self.cmd = cmd subprocess.call(self.cmd, shell=True) #Sample usage a = RunCmd() a.cmd_run('ls -l')