Lua中是否有像Python中的pass语句?

就像在Python中我们有pass语句一样。

def calcu():
    pass

在Lua中有类似这样的语句吗? 我想要做的是

if connect then
    pass
点赞
用户1009479
用户1009479

在 Python 中,pass 什么也不做。在 Lua 中,你可以把它留空:

if connect then end

如果你想要一个占位符,在 Lua 中使用一个空块

if connect then do end end

或者如果是在 Lua 5.2 中,使用分号:

if connect then ; end
2013-11-12 11:10:03