Excuse me, what is returned by python getsizeof?

Hello everyone, may I ask python sys.getsizeof to return the size of a variable in memory, is this size b or kb?

Nov.27,2021

Python provides the function getsizeof in the sys module to calculate the size of the Python object.

sys.getsizeof (object [, default])

returns the object size in bytes (byte).

the data store is represented in decimal, and the data transfer is represented in binary, so 1KB is not equal to 1000B.


this size is a number without a size.
kb is about 1024b

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb97e1-471db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb97e1-471db.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?