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'
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.