"
Detail the question.
In Python books, they write that everyone in Python has an object.
we take a traditional approach to leaing/teaching programming languages. Languages Pascal, C, C ++, they have the concept of" variable name "(identifier). with the name of the variable. The value is binded/assigned to a variable name - this is a way (in the original text of the program) to contact a memory cell for obtaining the value that is stored there. That is, it is that somewhere in a variable is kept at a certain address and it is connected with the address of the cell.
now we go to Python. Object.
a = 1 print (a) a ="Hello" " print (a) but then how to understand the action of the function of the function of the standard? Moreover, "" retus the whole guaranteed to be unique "" and constant for the object for the duration of its existence. ""
then why
a = 1 b = 1 print ( id (a) == id (b) == id span> ( 1 )) # trye print ( "Who?" ") Pre>A, B, 1 different objects? be
a = 1000000 b = 1000000 print ( id (a) == id (b)) # trye )at the expense of" Know the names, etc. " Question.
"
on5fydu8@gmail.com
·