-- 定义函数 local function sum(a, b) return a + b end -- 调用函数 _console:log(sum(1, 2))