lua中的注释

一、单行注释

--单行注释

二、多行注释

--[[

多行注释

---]]

 案例:

function fun()

a=10 --全局

local b=20   --局部

print(b)

end

fun()

print(a,b)

print(type(10))

print(type(true))

print(type(fun))

print(type("hello world"))

 

posted @ 2019-05-19 14:32  zhangqi0828  阅读(7762)  评论(0编辑  收藏  举报