摘要:
引用:https://blog.csdn.net/u012119316/article/details/89671681 阅读全文
摘要:
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 阅读全文
摘要:
path = "E:\\收藏夹\\C41\\C41" for filewalks in os.walk(path): pass # 生成器的输出为返回的是一个三元组(root, dirs, files),root表示当前目录,dir为当前root目录下的文件夹,files为当前root目录下的文件 阅读全文
摘要:
引用:https://blog.csdn.net/lxh_worldpeace/article/details/106129132 阅读全文