lua言語の使い方と..

1.ルア言語

Lua は、標準的な C 言語で記述され、ソースコード形式でオープンされる軽量かつコンパクトなスクリプト言語であり、アプリケーションに組み込むことを想定して設計されており、アプリケーションに柔軟な拡張機能やカスタマイズ機能を提供します。       

2. 学習サイト

8b00292c0af531ec40a3347c8974f553.png

参考:

https://wiki.openluat.com/

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

Lua オンラインランニングツール: https://chenxuuu.gitee.io/lua-online/?print%28%22hello%20world%21%22%29

3. 例

記号の使用法 .. (2.)

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


個人公式アカウント: 組み込み学習と実践

2727b72418ce66e340e4a8076d510563.png

おすすめ

転載: blog.csdn.net/weixin_46158019/article/details/131016492