发布者:尹娜发布时间:2025-04-14浏览次数:12
题目:
实例053:按位异或
题目 学习使用按位异或 ^。
程序分析 0^0=0; 0^1=1; 1^0=1; 1^1=0
题解:
a=0o77
print(a^3)
print(a^3^7)