W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_howto_remove_duplicates_2.py:
def my_function(x): return list(dict.fromkeys(x)) mylist = my_function(["a", "b", "a", "c", "c"]) print(mylist)