主页
Python
Python 运算符优先级
demo_precedence_like
运行 ❯
×
更改方向
保存代码
更改主题
print(5 == 4 + 1) """ The "like" comparison has a lower precedence than addition, and we need to calculate the addition first. The calculation above reads 5 == 5 = True """
True