关系运算符
| Operator | Meaning |
|---|---|
| < | Is less than |
| <= | Is less than or equal to |
| > | Is greater than |
| >= | Is greater than or equal to |
| == | Is equal to |
| != | Is not equal to |
逻辑运算符
参数从左向右解析,一旦结果可以确定就停止。
not优先级最高,其次and,or优先级最低
5 and 4判断5 和4 的布尔值,5为真,继续往后判断
0and4判断0和4的布尔值,0为假,停止判断,输出0
*可以拆分元组
| 类型转换函数 | 转换路径 |
|---|---|
| float(string) | 字符串 -> 浮点值 |
| int(string) | 字符串 -> 整数值 |
| str(integer) | 整数值 -> 字符串 |
| str(float) | 浮点值 -> 字符串 |
format函数
可以理解为c语言中的%d
π输入为math.pi
现在xfce里录入目录
前天笔记有误,记得修改



