收到一只叮咚
12345678910111213 t = {1,2,3,4,5} t_del = {2,3} hash_del = {} for key, var in pairs(del) do hash_del[var] = (hash_del[var] or 0) + 1end for key, var in pairs(t) do if (hash_del[var] and (hash_del[var] > 0)) then t[key] = nil endend