python常用

  

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

 

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