笨办法学python的笔记之四(ex27)
2015-10-17 17:19
597 查看
真值表(死记硬背)
序号 | 标题 | 内容 |
---|---|---|
1 | NOT | True? |
not False | True | |
not True | False | |
2 | OR | True? |
True or False | True | |
True or True | True | |
False or True | True | |
False or False | False | |
3 | AND | True? |
True or False | False | |
True or True | True | |
False or True | False | |
False or False | False | |
4 | NOT OR | True? |
not(True or False) | False | |
not(True or True) | False | |
not(False or True) | False | |
not(False or False) | True | |
5 | NOT AND | True? |
not(True and False) | True | |
not(True and True) | False | |
not(False and True) | True | |
not(False and False) | True | |
6 | != | True? |
1!=0 | True | |
1!=1 | False | |
0!=1 | True | |
0!=0 | False | |
7 | == | True? |
1==0 | False | |
1==1 | True | |
0==1 | False | |
0==0 | True |
相关文章推荐
- python学习之正则表达式应用
- 笨办法学python的笔记之三(ex26)
- <LeetCode><Easy> 36 Valid Sodoku
- python 字符编码与解码——unicode、str和中文:UnicodeDecodeError: 'ascii' codec can't decode
- Python - logging
- Python之Split函数
- Python安全编码与代码审计
- Python正则表达式指南
- python of zip moudle
- Python中subprocess学习
- Python迭代器和生成器
- python-webCrawler-01 urllib库
- numpy 中的ndarray数组返回符合特定条件的索引方法
- 关于python文件操作
- [转]python集合set
- Python多进程
- PYTHON-进阶-装饰器小结
- pip安装whl格式的python库
- 笨办法学python的笔记之二
- Python 字符串