会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小飞的
博客园
首页
新随笔
联系
管理
订阅
2019年3月12日
运算符
摘要: 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)
编辑
公告