随心笔谈
Lua的table库函数insert、remove、concat、sort详细介绍(lua table rehash)越早知道越好
函数列表: table.insert(table,[ pos,] value) table.remove( […]
阅读全文 →随心记录网事-锻炼心境-记录过往事迹
函数列表: table.insert(table,[ pos,] value) table.remove( […]
阅读全文 → Lua编程语言允许使用一个循环内嵌另一个循环。下文将介绍几个例子来说明这一概念。 语法 在Lu […]
阅读全文 → function test_print(…) for i=1,select(“#& […]
阅读全文 → a={} for i=1,10 do a[i]={} for j=0,10 do if(i%2==0) t […]
阅读全文 → counter={ count=0 } function counter.get(self) return […]
阅读全文 → function receive(prod) print(“receive is called […]
阅读全文 →