📌  相关文章
📜  python 设置删除重复元素 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:36.103000             🧑  作者: Mango

代码示例1
new_menu = ['Hawaiian', 'Margherita', 'Mushroom', 'Prosciutto', 'Meat Feast', 'Hawaiian', 'Bacon', 'Black Olive Special', 'Sausage', 'Sausage']

final_new_menu = list(set(new_menu))

print(final_new_men)

#output = ['Hawaiian', 'Margherita', 'Mushroom', 'Prosciutto', 'Meat Feast', 'Bacon', 'Black Olive Special', 'Sausage']