04 2015 档案

摘要:1 local demo = {"demoValue"} 2 local function fun() 3 print"hello world" 4 end 5 local tableDemo = { 6 ["a3132t"] = "valide?", 7 ... 阅读全文

posted @ 2015-04-30 13:16 dotdog 阅读(181) 评论(0) 推荐(0)

摘要:--计算字符串string中char的个数--better versionlocal function count_char(string, char) local index = 0 local count = 0 while ture do index = string.find(s... 阅读全文

posted @ 2015-04-26 17:25 dotdog 阅读(3072) 评论(0) 推荐(0)

导航