主页
Python
Python 运算符优先级
demo_precedence_bitwise_not
运行 ❯
×
更改方向
保存代码
更改主题
print(100 + ~3) """ Bitwise NOT has higher precedence than addition, and needs to be evaluated first. The calculation above reads 100 + -4 = 96 """
96