Difference between revisions of "Translations:Manual:Introduction/68/zh-CN"
Jump to navigation
Jump to search
(Updating translation from gettext import) |
(Updating translation from gettext import) |
||
Line 1: | Line 1: | ||
− | + | 如果您希望在 echo 显示中使用变量,请将变量和文本拼接起来: | |
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
my_gold = 5 | my_gold = 5 | ||
echo("I have " .. my_gold .. " pieces of gold!\n") | echo("I have " .. my_gold .. " pieces of gold!\n") | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 01:02, 20 December 2021
如果您希望在 echo 显示中使用变量,请将变量和文本拼接起来:
my_gold = 5
echo("I have " .. my_gold .. " pieces of gold!\n")