b1 = bytes([0x61,0x62]) b2 = b1 #认为重新包装成字节序列 print(b1,b2) print(id(b1),id(b2)) #python对某些常量进行了优化,bytes和str一样属于 ...
確定! 回上一頁