插入shell

https://www.jianshu.com/p/5d999a668e79


import subprocess
print subprocess.call("service apache2 status", shell=True)

import os
print os.system("service apache2 status")

 

posted on 2020-05-09 19:36  cdekelon  阅读(168)  评论(0编辑  收藏  举报

导航