在for循环中,使用pairs()和ipairs()循环有什么区别?此页面同时使用:Lua Docs 使用ipairs(): a = {"one", "two", "three"} for i, v in ipairs(a) do print(i, v) end
確定! 回上一頁