29时间流逝不过是数字加减,逻辑真假也无非零一相间
- if str.isnumeric() == True:if str.isnumeric()
1.
1.
1. bool()
1. time函数
1. datetime类now()方法
1. strftime()方法
1. timedelta类
1. 不能
1.
1. pyplot.xticks()yticks()pyplot.xticks( [ 3, 5 ], [‘张三’,’李四’] )
a=Trueb=False(a or c)if a or c :abor
if b and a :band
“短路运算”
if a and b :
25 and 3760 and 25
- 25 and 376
- 25 and 376True and True
- 25 and 376
0 and 25
or
- and
- or
Python官方文档| | | |
| —- | —- | —- |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | 000000 - 999999 |
| | |
|
| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
1.
1.
1.
1.
1.
1.
1.
1. (本计算式的结果需要先理解“短路运算”,请见本节“参考阅读”)
1. (本计算式的结果需要先理解“短路运算”,请见本节“参考阅读”)
-
-
-
-
-
1.
1.
1.
1.
1.
pyplot.xticks(y,t)
- myplot(x,y)
- myplot(x,y,t)