Implemented in lua table indexes start from 0

Array index list is traversed from 0, 1 new to lua may not be used from the start traversing (of course, it may be more accustomed to the index starts at 0)

 This definition can be done to make a table from a value corresponding to the index 0

 

 

 When defining such a lua table will automatically define the value of the key is not in sequence beginning from a given key

Guess you like

Origin www.cnblogs.com/zjp959/p/12024063.html