摘要: local t = {} -- 引入相关包local socket = require("socket") function t.main() local a,b=pcall(t.execute); if a==false then logerror(a,b); end end function t.exec... 阅读全文
posted @ 2018-08-10 14:50 浪荡小新 阅读(2862) 评论(0) 推荐(0) 编辑
摘要: local tmp_tab = {}; tmp_tab[1]="lua"; tmp_tab[2]="hello" tmp_tab[8]="aaa" for k,v in pairs(tmp_tab) do print(k..v) print(v) end for k,v in ipairs(tmp_ 阅读全文
posted @ 2018-08-10 14:47 浪荡小新 阅读(144) 评论(0) 推荐(0) 编辑