```func swap(a *int, b *int) { *a = *a ^ *b *b = *a ^ *b *a = *a ^ *b}```用位判断两数相等```if a ^ b == 0{}```