语句块

语句块在 C++ 中是用 "{" 和 "}" 括起来的,在 Lua 中,它是用 do 和 end 括起来的。比如:

do print("Hello") end

你可以在函数和语句块中定义局部变量。

Copyright 北京帮你玩科技有限公司 2022 all right reserved,powered by Gitbook该文章修订时间: 2023-08-09 17:19:31

results matching ""

    No results matching ""