Python prints the memory usage of variable objects

Python prints the memory usage of variable objects

import sys  
testValue = 30  
print(sys.getsizeof(testValue))

Comments

Popular posts from this blog

Python Receiving and parse JSON Data via UDP protocol

ubus lua client method and event registration code demo/example