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"))

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM