开发者社区 问答 正文

Python set集合中set3=set1.difference(set2)方法的作用是什么?

Python set集合中set3=set1.difference(set2)方法的作用是什么?

展开
收起
游客k7rjnht6hbtk6 2021-11-06 11:04:36 372 分享 版权
1 条回答
写回答
取消 提交回答
  • 将 set1 中有而 set2 没有的元素给 set3

    2021-11-06 11:04:55
    赞同 展开评论