摘要: 1 -- 二维向量类 2 3 local P = { 4 x = 0, 5 y = 0 6 } 7 8 Vec2 = P 9 10 --setfenv(1, P)11 12 local function optAdd(a, b)13 local o = P:new()1... 阅读全文