Python Number The (digital)
Python Number http://www.xuanhe.net/ for storing data type values.
It is not allowed to change the data type, which means that if you change the value of the Number data type, will be re-allocated memory space.
The following examples Number object will be created when the variable assignment:
You can also use the del statement to remove some of the Number object reference.
del statement syntax is:
You can delete individual or multiple objects by using the del statement, for example:
Python supports four different types of values:
- Integer (Int) - often referred to is an integer or an integer, is positive or negative integer, with no decimal.
- Long integer (Long integers) - unlimited integer size of the integer last is an uppercase or lowercase L.
- Float (Floating Point Real values) - float consists of an integer portion and a decimal part, may also be represented float (2.5e2 = 2.5 x 10 using scientific notation 2 = 250)
- Complex (Complex Numbers) - complex composed of a real part and an imaginary part, may be used a + bj, or Complex (a, b) indicates, the real part and the imaginary part b is a float.
Long integer can also use lowercase "L", but it is recommended that you use a capital "L", to avoid confusion with the numbers "1." Python "L" be displayed long integer.
Python also supports complex, the complex composed of a real part and an imaginary number part, may be used a + bj, or Complex (a, b) indicates, the real part and the imaginary part b is a floating-point
Python Number Type Conversion