Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
我想统计当前程序占用的内存大小(单位kB),请问我的统计部分代码正确吗? 在程序里主while的最后,先这样统计再运行垃圾回收的这种思路可行吗?
print(256-(int(gc.mem_free()/1024+0.5))) gc.collect()
垃圾回收是自动的,不需要手动控制。