“Comment imprimer dans Lua” Réponses codées

imprimé lua

print("text here")

-- or

extra = "more text"

print("text here " .. extra)
RexNC

imprimé lua

-- print "Hello, World!

print("Hello, World!")

-- or

x = "Hello, World!"
print(x)
Lazy Lizard

lua imprimer salut

print("Hi") --prints hi
Bloody Bat

Comment imprimer dans Lua

print("text"..v) -- "" for strings, '..' to concencate, type name of variable to print variable
Obnoxious Owl

Comment imprimer dans Lua

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..
Opal

Réponses similaires à “Comment imprimer dans Lua”

Questions similaires à “Comment imprimer dans Lua”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code