python day9(20170302 )
来源:互联网 发布:网络综合布线实训室 编辑:程序博客网 时间:2024/05/14 22:30
1.运算符:包含and,or
2.and运算符,两边同时为真时,才为真,如True and True = True;True and False=False,True and None,则没有什么返回值,如1 and 1=1;1 and 0=0;1 and None 则什么返回值都没有,多位计算是,只要有一个为False或者0,则结果为False或者0;1 and 1 and 0=0.True and False and True=False
3.or运算符,运算中只要有一个为True或者1,则结果为True,如True or True= True,True or False = False,1 or 1 =1, 1 or 0=1,1 or 0 or 0=1,1 or True or None=1,True or 1 or None=True.
4.not运算符,进行值的逻辑判断,返回值为True或False,如not True= False,not False=True,not 1= False,not 0 =True,not None=True,not “”=True,not“ss”=False。
0 0
- python day9(20170302 )
- Day9、Python
- Python-day9
- python学习日志--day9
- Python--day9 文件练习题
- python自动化之路-day9
- Python Day9 :一个小练习
- python学习-Day9-练习题复习
- day9
- day9
- Day9
- DAY9
- day9
- Day9
- Day9
- DAY9
- Python的学习笔记DAY9---Django学习1
- day9-笔记
- Thinkphp 中的内置函数
- 关于EasyPermission的使用(包括在fragment中)
- Android drawable微技巧,你所不知道的drawable的那些细节
- swiper:一个页面多个轮播,互不影响
- ROS中使用激光雷达UTM-30
- python day9(20170302 )
- TextView学习-------------跑马灯效果
- Leetcode Best Time to Buy and Sell Stock with Cooldown
- 服务器通讯——短连接和长连接
- Compiling C extension modules on Windows
- MySQL 视图的作用
- 关于eclipse中testNG的安装与入门
- cdoj-1423【思维&&排列组合】
- 黎活明给程序员的忠告