使用 set()构造函数创建集合

  1. thisset = set(("apple", "banana", "cherry"))
  2. print(thisset)
  3. # Note: the set list is unordered, so the result will display the items in a random order.