錯誤處理在lua中任何的意外狀況都會拋出一個錯誤,可是由於lua常常嵌入到 ... b) if not tonumber(a) or not tonumber(b) then error('a , b必須爲數字')
確定! 回上一頁