a [i] given ai

a={i=2,3}
i = 1
print(ai)
print(a[i])
prints 2, 3 respectively, ai is to access the i in a, which is equivalent to accessing an element in the structure, and a[i ] Is to access the element with index i in the array

Reference materials:

https://blog.csdn.net/wujie_03/article/details/71171489

Guess you like

Origin blog.csdn.net/Ftworld21/article/details/114419951