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) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 cdekelon Powered by .NET 9.0 on Kubernetes