Guidance on Square brackets usage in arcpy update cursor

المشرف العام

Administrator
طاقم الإدارة
I am looking for guidance regrading the usage or meaning of the square brackets in arcpy update cursor (Win 7, ArcGIS 10.2, Python 2.7.5)Although I have serched long and hard with various web searches, incl https://docs.python.org/2/library/index.html, I have not been able to find a descriptive answer.

So, in the example below (from post Help with Python Update Cursor syntax) I am trying to figure what the numbers within the [] actually mean?

Is it the column number?

If so, does the count start from 0 and from the left?

if(row[4] == crow.STTYPE and row[15]=="B": crow.FIELD1 = "HI" crows.updateRow(crow)else: crow.FIELD1 = "BYE" crows.updateRow(crow)Cheers, Peter



أكثر...
 
أعلى