垃圾代码

pull/69/head
lingjiang6 2021-08-28 19:08:03 +08:00 committed by GitHub
parent 94faec41b8
commit 818ae81962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)
get_all(cur_path)