ring > i = t3 > s = "a night at the opera"
> -- indices can be any Lua value > print(t1., t4[t3], t6[s]) moustache the marx brothers classic
> -- the phrase table.string is the same as table["string"] > print(t3.horn, t3["horn"]) harpo harpo
> -- indices can also be "multi-dimensional" > print (t5["marks"]["horn"], t5.marks.horn) harpo harpo
> -- i points to the same table as t3 > = t4[i] the marx brothers
> -- non-existent indices return nil values > prin页码:[1] [2] [3] [4] [5] [6] [7] 第2页、共7页 |