The usage of lua language and ..

1. lua language

Lua is a lightweight and compact scripting language written in standard C language and open in the form of source code. It is designed to be embedded in applications to provide flexible expansion and customization functions for applications.       

2. Learning website

8b00292c0af531ec40a3347c8974f553.png

reference:

https://wiki.openluat.com/

https://www.runoob.com/lua/lua-basic-syntax.html

Lua online running tool: https://chenxuuu.gitee.io/lua-online/?print%28%22hello%20world%21%22%29

3. Example

Usage of the symbol .. (2.)

print("hello")
local s="" 
local s1="123"
s=s..s1
print(s)
local s2="321"
s=s..s2
print(s)
--运行结果
--hello
--123
--123321
--注意..的用法,作用追加字符(串)到末尾


Personal Official Account: Embedded Learning and Practice

2727b72418ce66e340e4a8076d510563.png

Guess you like

Origin blog.csdn.net/weixin_46158019/article/details/131016492