📜  如何在 lua 代码示例中打印

📅  最后修改于: 2022-03-11 14:54:56.107000             🧑  作者: Mango

代码示例5
print("Hello world") -- prints a message into the console, which is called a string..

-- IF YOU WANTED TO USE A VARIABLED vv

local x = "Hello!" -- a variable has a value, for this case, a string.
print(x) -- We still print it in the console, it's that it's a nice, faster way of doing it.
-- Also helpful if you want to re-use code if it's used a lot in a program you make..