Lua——table.insert

table.insert(table,index,value) 在table 表中指定的index位置插入value index 能够不传入值, 默认为最后一位web tables = {"a", "b", "c", "d" } table.insert(tables, "e") print(unpack(tables)) -- a b c d e table.insert(tables, 3
相关文章
相关标签/搜索