python与系统做交互常用的模块和使用方法
摘要:
1.使用os模块与系统做简单命令的交互 >>>import os >>>os.popen('pwd') <open file 'pwd', mode 'r' at 0x7f6e27b6a420> >>>a = os.popen('pwd').read() >>>a '/root\n' 2.使用os. 阅读全文
posted @ 2017-01-18 11:40 游走的鱼 阅读(161) 评论(0) 推荐(0) 编辑