From 818ae8196205c62a42e36781c443a2d90beaaa7b Mon Sep 17 00:00:00 2001 From: lingjiang6 <44137154+lingjiang6@users.noreply.github.com> Date: Sat, 28 Aug 2021 19:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9E=83=E5=9C=BE=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- countFile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/countFile.py b/countFile.py index de22f10..f5be3e4 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)