There are several data types for Python:1. Digital "integral type Int/long, float type Float/complex"
integral type General 32bit machine 32 bits wide, 64bit machine 64bit wide.
I=1Print(Thevalue of "I is%d, the type is%s" %(I,type (i)))============================= ========= return Result: The value of I is 1, type is <class'int'>
Python3 has integrated int and long, and the conversion will be done automatically.
Python's floating-point number is a decimal number in mathematics, similar to a double in the C language.
In operations, the result of an integer and floating-point operation is a floating-point number
f=2.345Print(Thevalue of "F is%f, type is%s" %(F,type (f)))======================= ======= Returns the result: the value of F is 2. 345000, type is <class'float'>
forms such as A + BJ, where A and b are floating point and J (or J) represent the square root of 1 (this is an imaginary). A is the real part of the number, and B is the imaginary part.
c=1+2jPrint(Thevalue of "C is%s, type is%s" %(str (c), type (c)))===================== ========= return Result: The value of C is (1+2j), type is <class'complex'>
2. Strings String
3. Boolean Boolean4. List of lists5. tuple tuples6. Dictionary Dict
7. Set Set8. Dates Date
Python Data base type