python进阶练习之——按位异或

93 阅读1分钟
**题目:**学习使用按位异或 ^ 。
**程序分析:**0^0=0; 0^1=1; 1^0=1; 1^1=0
a=0o77
print(a^3)
print(a^3^7)