📜  计算唯一的熊猫 - Python 代码示例

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

代码示例6
words = ['a', 'b', 'c', 'a']
unique_words = set(words)             # == set(['a', 'b', 'c'])
unique_word_count = len(unique_words) # == 3