Im not sure why that isnt working but for starters you should try string substitution instead of concatentation and raw strings so you dont have to excape all those'\'. http://docs.python.org/release/2.6.6/library/stdtypes.html#string-formatting-operationsPlatLink = r"\\Covsdesrv\GIS Common\Plats\00%s\00%s000%s.TIF"%(MapNum,MapNum,PageNum)
names = ["Obi", "Bob", "Billy"] for name in names: if name == "Obi": print name, "is ", True, "a", "Jedi master" else: print name, "is not a Jedi master"
def SetLink(map, page): return r"\\Covsdesrv\GIS Common\Plats\%03d\%03d%04d.TIF % (map, map, page)
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.