📅  最后修改于: 2022-03-11 14:45:40.988000             🧑  作者: Mango
代码示例1
>>> import sys
>>> sys.getsizeof([])
36
>>> sys.getsizeof([1])
40
>>> lst = []
>>> lst.append(1)
>>> sys.getsizeof(lst)
52
>>>