python实例
2019-04-24python print指定宽度。调用shell或系统命令
1、print "%s %s %20s %s" % (ip,OS,name,host)
2、import os
os.system('cat /proc/cpuinfo')
n = os.system(test.sh)
os.system('/home/ftq/sort_user_date.sh')
3、file = os.popen(test.sh)
>>> file.read()