python常用

  

import commands,os,sys
msg = commands.getstatusoutput('ls -l')
print msg
~          

 

posted @ 2017-09-09 17:14  sunkd  阅读(317)  评论(0编辑  收藏  举报