class Solution(object):
def findNumsAppearOnce(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
eor = 0
for x in nums:
eor ^= x
# 比如00001000
rightOne = eor & (~eor + 1)
eor2 = 0
for x in nums:
#说明有1
if x & rightOne != 0:
eor2 ^= x
return (eor2, eor ^ eor2)