是否有关于32位和64位平台上Python数据结构的内存大小的参考?
如果没有,这将是很好的在SO上.越详尽越好!那么以下Python结构使用了多少字节(取决于len相关时的内容类型)?
len
int
float
str
tuple
list
dict
set
array.array
numpy.array
deque
(对于仅保留对其他对象的引用的容器,我们显然不希望自己计算项目的大小,因为它可能是共享的.)
此外,有没有办法在运行时(递归或不递归)获取对象使用的内存?
python memory memory-footprint
memory ×1
memory-footprint ×1
python ×1