首页 > 其他 > 详细

not/and/or

时间:2019-07-09 13:23:16      阅读:167      评论:0      收藏:0      [点我收藏+]

1 . 1 > 1 or 3 < 4 or 4 > 5 and 2 > 1 and 9 > 8 or 7 < 6

9 > 8          → Ture

( not > and > or ,and :前假取前,否则取后 。 or :前真取前 ,否则取后 。)

2 . not 2 > 1 and 3 < 4 or 4 > 5 and 2 > 1 and 9 > 8 or 7 < 6

7 > 6         →   Flase   (not 必须一直带着,直到被消除)

3 . 8 or 3 and 4 or 2 and 0 or 9 and 7

 → 8

4 . 0 or 2 and 3 and 4 or 6 and 0 or 3

 → 4

5 . 下列结果是什么?

6 or 2 > 1 6 3 or 2 > 1              →   3

0 or 5 < 4 5 < 4 5 < 4 or 3        → 3

2 > 1 or 6 2 > 1 3 and 2 > 1     → 2 > 1

0 and 3 > 1 0 2 > 1 and 3 3

3 > 1 and 0 0 3 > 1 and 2 or 2 < 3 and 3 and 4 or 3 > 2 2

 

not/and/or

原文:https://www.cnblogs.com/weiliwei-lucky/p/11156385.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!