python有哪些数据类型?

 可变类型:预留空间 + 自动扩容
         例如:list
         优点:使用方便

不可变类型:按需分配
         例如:tuple str int float bool ...
         优点:节省内存

猜你喜欢

转载自blog.csdn.net/LOVE_Me__/article/details/122710523