语句块

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

do print("Hello") end

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

Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""