Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (1.4k points)

Lua中有两种注释:行注释和块注释

Lua中有两种注释:行注释和块注释。
行注释以“--”开头,可以注释这一行后面的内容。
块注释以“--[[”开始,以“--]]”结尾,可以注释这个范围内的整个内容;块注释可以注释多行内容。
下面是一个示例:

print("hello")

-- 这是行注释

--[[

这是块注释,

块注释可以

注释多行!

--]]


这个人很懒,什么也没留下...
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...