摘要: 1、列举当前目录以及所有子目录下的文件,并打印出绝对路径 #!/usr/bin/env python3 import os for root,dirs,files in os.walk(os.getcwd()): for name in files: print(os.path.join(root, 阅读全文
posted @ 2022-08-12 22:58 joechenyao 阅读(196) 评论(0) 推荐(0)