rows = arcpy.SearchCursor("Quadrants") >>> qts = [r.Quotes for r in rows] >>> del rows >>> qts [u"test with quotes' 2", u"test with quotes' 3", u"test with quotes' 4", u"test with quotes' 5"]
for q in qts: ... where = '''"Quotes" = '{0}' '''.format(q.replace("'","''")) ... arcpy.SelectLayerByAttribute_management("Quadrants","NEW_SELECTION", where)
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.