1. e notation, scientific counting method.
AeB A, B is an integer, a*10 the second party.
2. Logic operation, True 1, False is 0, it is best not to use this calculation
True (1) False (0)
true+true=2
3. Type conversion
integer int () floating-point number float () string str ()
>>> a=5.2
>>> A
5.2
>>> Int (a)
5
>>> Str (a)
' 5.2 '
>>> Float (a)
5.2
4. Type () determines the data type within the function
Isinstance (A,STR) The first is the data, the second is the data type, and the judgement is consistent
5. * */arithmetic operators
A + = 1 a-=1 a *=1 a/=1
A=b=c=d=1
>>> 10//8//integer except integers get integers (decimal, floor Division)
1
>>> 10/8
1.25
>>> 10.0/8
1.25
3 * * 2 = 9 3 2-Time Square
6. Priority level
-3 * * 2 =-9-(3**2)
Number of operations
PLUS sign
Arithmetic operator +-*///%
Comparison Operators > <
Logical operator not and OR
7. Logical operators
And both sides are true, true side (arbitrary) is false, false
or one side (any) is true, True and False, False
Not negation
Python 03 Common operators