我有以下代码:
text = "sometext"
print( string.sub(text, ( #text - 1 )) )
Run Code Online (Sandbox Code Playgroud)
我想要删除最后一个字符text.
我有代码:
function output( string )
print( string )
end
output 'Hola!' -- Why do I not need `(` and `)` here?
Run Code Online (Sandbox Code Playgroud)
我何时不需要使用(该Lua语言.