python language

动态类型语言

bool True False

运算

1 / 2 => 0.5 1 // 2 => 0 //商,整数部分,取整

bitwise

^ //异或 5^10 = 15 & // 与 | // 或(位操作) << // shift to left, add zero to the right

// the same

not x // x如果是int,0,str,是否为空字符串,列表,空列表…