📜  python变量需要多少内存 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:07.802000             🧑  作者: Mango

代码示例1
from sys import getsizeof
a = 42
getsizeof(a) # size of object in bytes