代码示例:(标识:python_set_add)
python_set_add.py
thisset = {"apple", "banana", "cherry"}

thisset.add("orange")

print(thisset)
运行结果: