摘要: Python运算符优先级 1、and比or的优先级 在没有()的情况下not 优先级高于 and,and优先级高于or,即优先级关系为( )>not>and>or,同一优先级从左往右计算。 以下几个例子 1 print(3>4 or 4<3 and 1==1) 2 print(1 < 2 and 3 阅读全文
posted @ 2019-03-12 23:12 xiaofeiAI 阅读(186) 评论(0) 推荐(0) 编辑