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