Home  >  Article  >  Backend Development  >  What does num mean in python?

What does num mean in python?

藏色散人
藏色散人Original
2019-07-05 10:07:1147613browse

What does num mean in python?

#What does num mean in python?

num in python is the abbreviation of number.

Python Number data type is used to store numerical values.

The data type is not allowed to be changed, which means that if the value of the Number data type is changed, the memory space will be reallocated.

The following examples of Number objects will be created when variables are assigned:

var1 = 1
var2 = 10

You can also use the del statement to delete some Number object references.

The syntax of the del statement is:

del var1[,var2[,var3[....,varN]]]]

You can delete single or multiple objects by using the del statement, for example:

del var
del var_a, var_b

Related recommendations: "Python Tutorial

The above is the detailed content of What does num mean in python?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn