摘要: os.path.abspath('.') #返回绝对路径 os.path.dirname(path) #返回一个字符串,包含path参数中最后一个斜杠之前的所有内容; os.path.basename(path) #将返回path参数中最后一个斜杠之后的所有内容 os.path.split()返回两个字符串的元组,包含路径的目录名称和基本名称 os.path.split('/home... 阅读全文
posted @ 2018-12-25 21:24 别动我的面包 阅读(93) 评论(0) 推荐(0) 编辑
摘要: import os from os import path newgdb = outfold+os.sep+"RESULT.gdb" if not path.exists(newgdb): arcpy.CreateFileGDB_management(outfold, "RESULT.gdb") 阅读全文
posted @ 2018-12-25 20:57 别动我的面包 阅读(379) 评论(0) 推荐(0) 编辑