代码示例:(标识:python_ref_set)
python_ref_set.py
x = set(("apple", "banana", "cherry"))

print(x)

# Note: the set list is unordered, so the result will display the items in a random order.
运行结果: