how to access elements in a 2D array?

后端 未结 6 1870
南旧
南旧 2020-11-29 08:49

I am new to python and I would like to understand how one goes about manipulating the elements of an array. If I have for example:

a= ( a11 a12 a13 )  and b          


        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-29 08:55

    a[1][1] does work as expected. Do you mean a11 as the first element of the first row? Cause that would be a[0][0].

提交回复
热议问题