python调用系统命令 shell命令
摘要:
使用python调用系统命令,基本有3种选择:1. 使用os模块的system方法import osos.system('ls')2. 使用os模块的popen方法import osos.popen('ls')3. 使用commands模块的getstatusoutput方法import comma... 阅读全文
posted @ 2015-01-22 21:21 李皮筋 阅读(382) 评论(0) 推荐(0) 编辑