代码示例:(标识:python_set_constructor)
python_set_constructor.py
thisset = set(("apple", "banana", "cherry"))
print(thisset)
# Note: the set list is unordered, so the result will display the items in a random order.
运行结果: