table inside table in Lua

前端 未结 1 1176
情书的邮戳
情书的邮戳 2020-12-20 14:56

How can I get the data which is a table inside a table, i mean like this:

t = { {a, b, c}, {d, e, f} };

if I write this line of code:

相关标签:
1条回答
  • 2020-12-20 15:28

    Have you tried t[1][1]? That should get you the first index in the table you get from t[1]

    0 讨论(0)
提交回复
热议问题