github我的刷题 https://github.com/chaor/LeetCode_Python_Accepted | 我翻译的python3.4官网教程 kitt.me/py3
异或
class Solution: # @param A, a list of integer # @return an integer def singleNumber(self, A): res = 0 for i in A: res ^= i return res