python执行centos命令 import os improt sys import re import commands a = commands.getoutput("ls -al /") print a