不为别的,只为做一个连自己都羡慕的人

摘要: 引用:https://blog.csdn.net/u012119316/article/details/89671681 阅读全文
posted @ 2021-02-08 17:20 升级打怪 阅读(241) 评论(0) 推荐(0) 编辑
摘要: def find(dir, name): # print(dir) for i in [x for x in os.listdir(dir) if os.path.isfile(os.path.join(dir, x)) and name in os.path.splitext(x)[0]]: pr 阅读全文
posted @ 2021-02-08 15:09 升级打怪 阅读(2357) 评论(0) 推荐(0) 编辑
摘要: path = "E:\\收藏夹\\C41\\C41" for filewalks in os.walk(path): pass # 生成器的输出为返回的是一个三元组(root, dirs, files),root表示当前目录,dir为当前root目录下的文件夹,files为当前root目录下的文件 阅读全文
posted @ 2021-02-08 15:08 升级打怪 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 引用:https://blog.csdn.net/lxh_worldpeace/article/details/106129132 阅读全文
posted @ 2021-02-08 12:45 升级打怪 阅读(123) 评论(0) 推荐(0) 编辑