show all the files under one folder
摘要:import osdef countFile(dir): tmp = 0 for item in os.listdir(dir): if os.path.isfile(os.path.join(dir, item)): tmp += 1 else: tmp += countFile(os.path.
阅读全文
posted @ 2020-04-21 16:46