📜  python set remove multiple elements - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:05.202000             🧑  作者: Mango
代码示例1
>>> s = {1, 2, 3, 4, 5}
>>> s.difference_update({1, 2, 3})
>>> s
{4, 5}
>>> s -= {4, 5}
>>> s
set()