【每日一题0613】删除 list 里面的重复元素 并保持顺序不变化

def test_solve():
    l = [1,2,4,2,4,3]
    m = {}
    ans = []
    for i in l:
        if m.get(i):
            continue
        else:
            m[i] = True
            ans.append(i)
    print(ans)

image