if __name__ == '__main__': root_dir = ".py文件目录" dirs = os.listdir(root_dir) for file in dirs: file=root_dir+"\"+file res=parseFile(file)
if __name__ == '__main__': root_dir = ".py文件目录" dirs = os.listdir(root_dir) for file in dirs: file=root_dir+"\"+file res=parseFile(file)