将> 至 Python 脚本。
在某些情况下,导出的模型会无法正常运行。将模型导出为脚本时,请考虑以下几点:
import keyword
print keyword.kwlist
使用要素集参数从模型中导出
Feature_Set = arcpy.GetParameterAsText(0)
if Feature_Set == ‘#‘ or not Feature_Set:
Feature_Set = "in_memory\\{F15C6411-0F4F-4A68-9BAC-29D6E7874669}" # provide a default value if unspecified
原文:https://www.cnblogs.com/gisoracle/p/13583741.html