摘要: access.log文件中为: 阅读全文
posted @ 2018-09-11 22:05 Presley 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 import subprocess 2 #subprocess.call("df -h",shell=True,stdout=subprocess.PIPE)#打印到视图,但是不能保存,也不能保存变量 3 4 #a = subprocess.Popen("df -h",shell=True,stdout=subprocess.PIPE) 5 #使用原生的shell 6 #此方法... 阅读全文
posted @ 2018-09-11 20:19 Presley 阅读(247) 评论(0) 推荐(0) 编辑