码迷,mamicode.com
首页 > 其他好文 > 详细

day04_06 短路原则

时间:2017-09-07 00:58:58      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:images   不用   blog   原则   报错   style   .com   alt   and   

技术分享

True和False不能写成ture和false,不然会报错

not not True or False and not True

按照not>and>or来进行括号

(not (not True)) or (False and (not True))

技术分享

or:有真为真,前面是真,后面就不用管了,成为短路原则

技术分享

 

day04_06 短路原则

标签:images   不用   blog   原则   报错   style   .com   alt   and   

原文地址:http://www.cnblogs.com/darkalex001/p/7487728.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!