#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执行:
2023-11-27 12:32:34
#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执行: