Chinaunix首页 | 论坛 | 博客
  • 博客访问: 460368
  • 博文数量: 280
  • 博客积分: 337
  • 博客等级: 二等列兵
  • 技术积分: 1957
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-17 21:36
文章分类

全部博文(280)

文章存档

2017年(13)

2016年(38)

2015年(78)

2014年(67)

2013年(70)

2012年(14)

发布时间:2014-08-06 11:20:25

example:from:http://fperrad.github.io/lua-MessagePack/msgpack.html点击(此处)折叠或打开local mp = require 'MessagePack'mp.set_number'float'mp.set_integer'unsigned'mp.set_array'with_hole'mp.set_string'str.........【阅读全文】

阅读(5593) | 评论(0) | 转发(0)

发布时间:2014-08-06 11:13:42

RT.点击(此处)折叠或打开local math = require('math')function roundOff(num, n)    if n > 0 then        local scale = math.pow(10, n-1)  &.........【阅读全文】

阅读(12273) | 评论(0) | 转发(0)

发布时间:2013-07-12 22:36:10

点击(此处)折叠或打开require("lfs")path=lfs.currentdir()print(path)......【阅读全文】

阅读(3148) | 评论(0) | 转发(0)

发布时间:2013-07-02 16:35:18

点击(此处)折叠或打开math.randomseed(tostring(os.time()):reverse():sub(1, 6)) local n1 = math.random();local n2 = math.random(n);local n3 = math.random(m, n);......【阅读全文】

阅读(1700) | 评论(0) | 转发(0)

发布时间:2013-06-26 11:16:33

luaplus库里有个clone函数的函数原型是这样的点击(此处)折叠或打开function deepcopy(tDest, tSrc)     for key,value in tSrc do         if type(value)=='table' and value["spuer"]==nil then .........【阅读全文】

阅读(9767) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册