摘要:
一)function (函数) 有名函数: optional_function_scope function function_name( argument1, argument2, argument3..., argumentn) function_body return result_param 阅读全文
posted @ 2024-01-01 16:53
孙龙-程序员
阅读(33)
评论(0)
推荐(0)
摘要:
一)boolean(布尔)布尔类型,可选值 true/false; Lua 中 nil 和 false 为“假”,其它所有值均为“真”。比如 0 和空字符串就是“真”; local a = true local b = 0 local c = nil if a then print("a") --> 阅读全文
posted @ 2024-01-01 16:34
孙龙-程序员
阅读(54)
评论(0)
推荐(0)