“lua table with string index” Code Answer ; 1. a = {} ; 2. x = "y" ; 3. a[x] = 10 -- put 10 in field "y" ; 4. print(a[x]) --> 10 -- value of field " ...
確定! 回上一頁