📅  最后修改于: 2022-03-11 14:54:55.708000             🧑  作者: Mango
local test = {"a", "b", "c"}
local function removeKey(tbl, key)
for k,v in pairs(tbl) do
if (v == key) then
table.remove(tbl, key)
end
end
end
removeKey(test, "c")