string.format("hi %d",2) 相当于%s已经在传参了吗
tonumber和tostring都是类似的
type看类型
#相当于count(*)吗,还能看字符串长度
tonumber("123") -- 123 数值类型 tostring(131) -- 131 字符串类型 string.format("number 1 to %d",100) -- %d 为后面的100 #table -- table.length #为长度符号 type(a) -- 判断a的类型 eg:type(a) - string (table...)
lua的系统库