📌  相关文章
📜  如何在python代码示例中对两个元素进行异或

📅  最后修改于: 2022-03-11 14:45:27.871000             🧑  作者: Mango

代码示例1
>>> from functools import reduce
>>> from operator import xor
>>> bits = ('0', '1', '0', '1', '0', '1', '0')
>>> reduce(xor, map(int, bits))
1