One 、 identifier
Case sensitive , Don't start with an underscore
Two 、 Operator
division
/ Floating point numbers
// to be divisible by
An operation
Moves to the right one = Divide 2
The left one = multiply 2
32 Moving one bit to the right is equivalent to dividing by 2, Moving two digits to the right is equivalent to dividing by 4
32//2=32>>1
32//4=32>>2
32//8=32>>3
Comparison operations
Chain comparison operator
4>3>2
Logical operators
and or not Can only be expressed in letters
Short circuit operator .
Logic operation , When the result is calculated before , Don't forget the back , such as
1>2 and 2<3 and 3>4
from 1>2=false The latter will not be able to calculate .