摘要:
1、注释-- ; --[[ ]]2、控制语句:if ..then .. elseif.. then.. else.. endwhile.. do..endrepeat ..util..for 1,2,3 do ..end[此处变量,相当于局部变量;可以省略步进值]3、赋值:a,b,c,d = 1,2,3,4;a,b = b,a4、字符串连接:"this is".."a string"5、比较:table function userdata只能 == ~=6、逻辑运算:and or【x = a?b:c;x = a and b or c;x = x or a 阅读全文
posted @ 2014-01-09 10:04
tinytiny
阅读(220)
评论(0)
推荐(0)

浙公网安备 33010602011771号