Python3
, all strings are unicode
stored in memory.
t = 'abc'
The execution order of the above statements in the computer memory is as follows:
- Create a string in memory
'abc'
- Create a variable in the program stack register
t
- Make the variable in the register
t
point to (that is, assign the address'abc'
of the string to )'abc'
t