ClearEnvironment
摘要
Resets a specific environment setting to its default.
语法
ClearEnvironment (environment_name)
参数 | 说明 | 数据类型 |
environment_name |
The name of the environment setting that will be reset to its default setting. | String |
代码示例
ClearEnvironment example
Sets the specified environment setting back to its default.
import arcpy from arcpy import env env.workspace = "C:/Data/World.gdb" # prints C:/Data/World.gdb print env.workspace arcpy.ClearEnvironment("workspace") # prints None print env.workspace
相关主题
7/10/2012