Lua 的函式允許多個回傳值,如下例:. function divmod(a, b) return math.floor(a / b), a % b end local a, b = divmod(7, 3) assert(a == 2) assert(b == 1) ...
確定! 回上一頁