結果 : how to write xor in python