有返回值

函数

local function get_sum(n1, n2)
  return n1 + n2
end

local result = get_sum(5, 3)
-- result = 8

print("result = " .. result)