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

thisset.remove("banana")

print(thisset)
运行结果: