1/Data manipulation
* operator
The integer type is an addition operation, and the string is a merge operation.
-integer type is the subtraction operation
Integer is a multiplication, and the string is a repeating operation.
Integer division operations retain only integers, floating-point number divisions retain floating-point numbers
%; Integer division takes remainder operation
* *; Integer power operation
> greater than, note that different types cannot be compared
< less than, note that different types cannot be compared
= = equals, note that different types cannot be compared
! =; Not equal, note different types cannot compare
=; Assign a value
*round () rounding, configurable reserved decimal digits parameter
1 Round (2.6)2 > 33 round (2.3)4 > 25 round (2.6 , 0) 6 > 3.07 Round (2.6, 1)8 > 2.6
*type () to determine the data type function
1 type (123)2int3 type ('abc') 4 Str 5 Type (3.2)6 float
*len () Number of statistics strings
1 ' ABC ' 2 Len (a) 3 345 len ('abc')6 3
*or;
1TureorTure2>Ture3TureorFalse4>Ture5 false ro False6>False7 8Ture andTure9>TureTenTure andFalse One>False AFalse andFalse -> False
2/int integer
Integer
3/float floating Point
Decimal
4/bool Boolean value
*true the right
*false the wrong
Python Learning-data type (INT;FLOAT;BOOL;STR)