diff --git a/countFile.py b/countFile.py index de22f100..f5be3e46 100644 --- a/countFile.py +++ b/countFile.py @@ -10,7 +10,8 @@ def get_all(cwd): ax = os.path.basename(sub_dir) #如果当前路径不是文件夹,则把文件名放入列表 result.append(ax) print(len(result)) #对列表计数 + print(len(result)) if __name__ == "__main__": cur_path = os.getcwd() #当前目录 - get_all(cur_path) \ No newline at end of file + get_all(cur_path)