垃圾回收
小整数[-5,257)共享对象,常驻内存(小整数对象池即python自己创建好的一类少数整数对象)
a = 12
b = 12
id(a) == id(b) # ===>true
单个字符共用对象,常驻内存
a = 'a'
b = 'a'
id(a) == id(b) # ===>true
单个单词,不可修改,默认开启intern机制,共用对象,引用计数为0则销毁
a1 = "HelloWorld"
a2 = "HelloWorld"
a3 = "HelloWorld"
a4 = "HelloWorld"
a5 = "HelloWorld"
a6 = "HelloWorld"
a7 = "HelloWorld"
a8 = "HelloWorld"
a9 = "HelloWorld"
id(a1) == id(a9) #....