1. Create a numeric object and assign a value
a=1# integer b=1.1# floating point c=1.23e5# real d=1.23+4.56j# imaginary number
2. Updating numeric objects
Note: Because the numeric object is immutable, it is better to remove the variable name from an object and paste it into a new object.
From being able to see even though the same assignment is 1000, the IDs of the two are different, representing different objects, just the same value.
3. Delete a Numeric object
According to the 2nd, in fact the so-called deletion is actually not the use of that numerical object, assuming strict deletion, then need to use del this keyword
After running the Del operation, a actually no longer exists, so print error. Say a doesn't define
Here we are, thank you.
------------------------------------------------------------------
Click the jump 0 Basic python-folder
0 basic Science python-5.1 Digital Brief introduction