當(dāng)前位置:
首頁(yè) >
python 中的真值表
發(fā)布時(shí)間:2025/3/19
24
豆豆
生活随笔
收集整理的這篇文章主要介紹了
python 中的真值表
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
邏輯術(shù)語(yǔ)
=:大于等于
| not False | True |
| not True | False |
| True or False | True |
| True or True | True |
| False or True | True |
| False or False | False |
Ps:有一真則真
| True and False | False |
| True and True | True |
| False and True | False |
| False and False | False |
Ps: 同為真才真
| not (True or False) | False |
| not(True or True) | False |
| not( False or True) | False |
| not( False or False) | True |
| not(True and False) | True |
| not(True and True) | False |
| not(False and True) | True |
| not(False and False) | True |
| 1!=1 | False |
| 1!=0 | True |
| 0!=1 | True |
| 0!=0 | False |
| .0==1 | False |
| 0==0 | True |
| 1==1 | True |
| 1==0 | False |
總結(jié)
以上是生活随笔為你收集整理的python 中的真值表的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: python 中参数 ,解包和变量的入门
- 下一篇: python3 split()函数