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:
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: