The quotes matter
>>> arcpy.env.overwriteOutput = 'True' >>> arcpy.env.overwriteOutput True >>> arcpy.env.overwriteOutput = 1 >>> arcpy.env.overwriteOutput True
>>> arcpy.env.overwriteOutput = 'False' >>> arcpy.env.overwriteOutput False >>> bool('False') True
if arcpy.env.overwriteOutput: print "It is true!" else: print "It is false!"
== True
== 'True'
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.