20 September 2019 / python Python 计算对象大小 Python 计算对象所占内存 import sys a = "hello" print(sys.getsizeof(a))