Fred's Blog
Opensource with life.
Wednesday, June 20, 2012
Python and Linux Command
import commands
out = commands.getoutput("ls")
print out
1 comment:
muxueqz
August 29, 2012 at 5:43 PM
赞,commands这个模块非常好用
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
赞,commands这个模块非常好用
ReplyDelete