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
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.