摘要: python压缩解压文件(天地图切片批量解压缩) import zipfile import os src_path = r"D:\test\testdir" dsc_path = r"D:\test\testdir.zip" extr_path = r"D:\test\new_testdir" # 阅读全文
posted @ 2020-06-12 15:41 木易GIS 阅读(279) 评论(0) 推荐(0) 编辑
摘要: python读取多层嵌套文件夹中的文件(zip文件嵌套在不同层级的文件夹中): 使用递归函数,使用python的os.path.isfile方法判断当前是不是.zip文件,如果不是再用os.listdir方法将子目录循环递归判断。 import os path = 'D:\关键\底图\vec_w' 阅读全文
posted @ 2020-06-12 15:36 木易GIS 阅读(1873) 评论(0) 推荐(0) 编辑