随心笔谈
Lua的table库函数insert、remove、concat、sort详细介绍(lua table rehash)越早知道越好
函数列表: table.insert(table,[ pos,] value) table.remove( […]
Read more →随心记录网事-锻炼心境-记录过往事迹
函数列表: table.insert(table,[ pos,] value) table.remove( […]
Read more → Lua编程语言允许使用一个循环内嵌另一个循环。下文将介绍几个例子来说明这一概念。 语法 在Lu […]
Read more → Lua是相当简单易学,让我们开始创建第一个Lua程序! 第一个Lua程序 交互模式编程: Lu […]
Read more → function test_print(…) for i=1,select(“#& […]
Read more → co=coroutine.create(function() print(“hi” […]
Read more → a={} for i=1,10 do a[i]={} for j=0,10 do if(i%2==0) t […]
Read more → counter={ count=0 } function counter.get(self) return […]
Read more → #include “stdafx.h” lua_State *L; void lo […]
Read more → function receive(prod) print(“receive is called […]
Read more → #include “stdafx.h” lua_State *L; void lo […]
Read more →