Use sys.getsizeof to get the size of an object, in bytes. >>> from sys import getsizeof >>> a = 42 >>> getsizeof(a) 12 >>> a = 2**1000 ...
確定! 回上一頁