2021年3月26日

python如何判断字符串是否以某个或者某几个字母或者数字结尾

摘要: 用endwith()方法可以判断字符串是否以某个或者某几个字母或者数字结尾 1 a = 'auy.geojson' 2 b = 'auy' 3 print(a.endswith('.geojson')) 4 print(b.endswith('.geojson')) 结果 1 True 2 Fals 阅读全文

posted @ 2021-03-26 18:28 方圆几百里Idea 阅读(928) 评论(0) 推荐(0) 编辑

arcgis脚本工具MultiValue为yes时,返回什么类型

摘要: 当脚本工具的某个参数的MultiValue属性设置为Yes时,arcpy.GetParameterAsText()返回的是以分号“;”隔开的字符串,数据类型是Unicode 可以通过split()函数创建列表取值。 阅读全文

posted @ 2021-03-26 16:24 方圆几百里Idea 阅读(109) 评论(0) 推荐(0) 编辑

导航