python脚本 #!/usr/bin/python #coding = utf-8 import os files = os.listdir('/opt') for file in files: print file