#!/usr/bin/env python
# coding: UTF-8
name = 'xk'
name2 = name
print('myname is ', name, name2)
print('===========================')
name = "aaaaaaaaaa"
print('my name is ', name, name2)
结果如下
myname is xk xk
===========================
my name is aaaaaaaaaa xk
指name 将值赋予name2后,name2直接指向了name值的内存地址,name2和name再没有任何关系