gc
module realizes the garbage collection of the memory, and subsets of the corresponding CPython module. See CPython file gc for more detailed information.
gc.enable
gc.enable()
Enables the mechanism for automatic reclaiming memory fragments.
gc.disable
gc.disable()
Disables the mechanism for automatic reclaiming memory fragments.
gc.isenabled
gc.isenabled()
Queries whether the mechanism for automatic reclaiming memory fragments is enabled.
Return Value
True-The mechanism for automatic reclaiming memory fragments is enabled;
False-The mechanism for automatic reclaiming memory fragments is disabled.
gc.collect
gc.collect()
Reclaims the memory fragments actively.
gc.mem_alloc
gc.mem_alloc()
Queries the applied memory size which has been applied.
Return Value
gc.mem_free
gc.mem_free()
Queries the remaining available memory size.
Return Value
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。