#coding:utf8
import sys,os
def process(path):
for f in os.listdir(path):
fin = open(path+"/"+f,"r")
print fin.read()
fin.close()
if __name__ == "__main__":
process(sys.argv[1])
linux执行: