what is behind the operator OR inside assignment operators?

后端 未结 0 489
眼角桃花
眼角桃花 2021-01-11 10:12

i know the mechanics behind from operator OR, but in this case why the output is 7 ? what is behind?

x = int(5)
x = x | 3
print(x)

Thanks.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题