zoukankan      html  css  js  c++  java
  • 关于逻辑运算案例笔记

     1 #给 t 赋值为Thue,T 赋值为False,f 赋值为False,F 赋值为True
     2 t = True
     3 T = False
     4 f =  False
     5 F = True
     6 
     7 #两边均正确取最右,否则False
     8 t and F
     9 t and T
    10 T and f
    11 f and F 
    12 
    13 #两边都正确取最近(左);如有一个正确,则取正确的那个;否则False
    14 t or F
    15 t or T
    16 T or f
    17 f or F
    18  
    19 #取非,逻辑取反
    20 not True
    21 not False
    作者:俊豪郎
    出处:http://www.cnblogs.com/shaohan/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
  • 相关阅读:
    ssh 远程命令
    POJ 2287
    POJ 2376
    hihoCoder1488
    POJ1854
    HDU 5510
    HDU 4352
    CodeForces 55D
    HDU 1517
    CodeForces 1200F
  • 原文地址:https://www.cnblogs.com/shaohan/p/9085401.html
Copyright © 2011-2022 走看看