可以使用大括号或者set() 函数创建集合。 ... 3, 2, 6, 2, 4, 3, 1, 2] print(set(a)) # 转list print(list(set(a))) ... 标签: 面试题 , python.
確定! 回上一頁