python进阶练习之——按位或

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