ClearEnvironment (arcpy)

摘要

将特定环境设置重置为默认值。

语法

ClearEnvironment (environment_name)
参数说明数据类型
environment_name

The name of the environment setting that will be reset to its default setting.

String

代码实例

ClearEnvironment 示例

将指定环境设置重置为其默认值。

import arcpy

arcpy.env.workspace = "c:/data/world.gdb"

# prints c:/data/world.gdb
print(arcpy.env.workspace)

arcpy.ClearEnvironment("workspace")

# prints None
print(arcpy.env.workspace)

相关主题

5/10/2014