mirror of https://github.com/injetlee/Python.git
垃圾代码
parent
94faec41b8
commit
818ae81962
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue