摘要: 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)