📅  最后修改于: 2022-03-11 14:45:27.871000             🧑  作者: Mango
>>> from functools import reduce
>>> from operator import xor
>>> bits = ('0', '1', '0', '1', '0', '1', '0')
>>> reduce(xor, map(int, bits))
1