>>> import sys >>> a = {'a':1,'b':2.0} >>> sys.getsizeof(a) # 变量占用字节数 240
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8