def showMessage(message): print message showMessage('my testmessage')
def showMessage(): print message showMessage() # oops message = 'testing'
try: gp:Intersect_Analysis('test1.shp; test2.shp', 'out.shp') except arcgisscripting.ExecuteError: print gp.GetMessages(2)
except IOError: ....do some stuff....
>>> a = True >>> b = True >>> if a == True: ... print 'a is True' ... elif b == True: ... print 'b is True' ... a is True
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.