标示符:字母(letter)或者下划线开头的字母、下划线、数字序列.最好不要使用下划线加大写字母的标示符,因为Lua的保留字也是这样的。Lua中,letter的含义是依赖于本地环境的。

保留字:以下字符为Lua的保留字,不能当作标识符。

and        break      do         else       elseif

end        false      for        function   if

in         local      nil        not        or

repeat     return     then       true       until

while

注意:Lua是大小写敏感的.

注释:单行注释:--

多行注释:--[[    --]]

--[[

print(10)         -- no action (comment)

--]]

相关文章:

  • 2022-12-23
  • 2021-06-04
  • 2021-10-26
  • 2021-07-25
  • 2022-12-23
  • 2021-07-02
  • 2022-01-29
  • 2021-09-19
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
  • 2021-12-20
  • 2021-11-13
  • 2021-05-09
相关资源
相似解决方案