Python intersection and difference sum doesn't give me the actual number of the original set

前端 未结 3 1388
攒了一身酷
攒了一身酷 2020-12-22 00:30

I have two lists, one with old IDs and one with new IDs.

I want to get items in common and items not common.

The new_Items list has all new ones. The old_It

3条回答
  •  臣服心动
    2020-12-22 00:59

    The list had some repeated items, that was the problem.

    So the set cuts these repeated items and that is why printing less numbers than I expect.

提交回复
热议问题