标签: windows memory psutil
以下函数返回工作内存。有人能告诉我这个单位是什么?字节或kB?
def Memory(): #Get process number pid = os.getpid() #Get current used memory from the process and return return int(psutil.Process(pid).memory_info()[0])