Changing the data type is not allowed, which means that if the value of the Number data type is changed, the memory space will be reallocated.
Python supports four different numeric types:
Integer (int)-usually called integer or integer, positive integer or negative integer without decimal point.
Long integers)- an integer of infinite size, which ends with an uppercase or lowercase l.
Floating-point real value)-Floating-point consists of integer part and decimal part, and floating-point can also be expressed by scientific notation (2.5e2 = 2.5 x).
102 = 250)
Complex number)-Complex number consists of real part and imaginary part, which can be expressed by a+bj or complex number (a, b). The real part a and imaginary part b of a complex number.
Are all floating-point types.
For more technology, please pay attention to Python video tutorial.