上集回顾
上一节我们完成了第一部分的考试,感觉良好,第一部分印象中没有什么没有解决的问题,除了字符编码那里那个问题。第二部分开始又是一段蜜月时期,一些基础的逻辑关基、循环、条件语句,然后是列表和字典,一直到综合项目(习题43开始)。所以准备这个第二部分快速进行,本月底之前完成!
记住逻辑关系
| not | 真假 |
|---|
| not False | True |
| not True | False |
| or | 真假 |
|---|
| True or Flase | True |
| True or Ture | True |
| False or True | True |
| False or False | False |
| and | 真假 |
|---|
| True or Flase | False |
| True or Ture | True |
| False or True | False |
| False or False | False |
| not or | 真假 |
|---|
| not(True or Flase) | False |
| not(True or Ture) | False |
| not(False or True) | False |
| not(False or False) | True |
| not and | 真假 |
|---|
| not(True and Flase) | True |
| not(True and Ture) | False |
| not(False and True) | True |
| not(False and False) | True |
| != | 真假 |
|---|
| 1 != 0 | True |
| 1 != 1 | False |
| 0 != 1 | True |
| 0 != 0 | False |
| == | 真假 |
|---|
| 1 == 0 | False |
| 1 == 1 | True |
| 0 == 1 | False |
| 0 == 0 | True |

总之就是要记住真值表,而且目的不在于会判断,而是要形成条件反射。每天拿出零碎的时间看个几次索引卡,争取在一周的时间后可以默写。
学习感悟:这节的任务是制定记住真值表的计划,索引卡已经制作完成,加油~