会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
汪神
博客园
首页
新随笔
联系
订阅
管理
2017年2月5日
and or类比c中的 bool?a :b
摘要: a = "heaven" b = "hell" c = True and a or b print c d = False and a or b print d 输出: heaven hell 所以bool and a or b类比c中的bool?a:b,当bool条件为真时,结果是a;当bool条
阅读全文
posted @ 2017-02-05 20:27 汪神
阅读(748)
评论(0)
推荐(0)
公告