根据Python官方文档,您可以强制垃圾收集器释放未引用的内存gc.collect()。例:

import gc
gc.collect()

所属网站分类: python高级 > 综合&其它


作者:lg

链接:http://www.pythonheidong.com/blog/article/455/

来源:python黑洞网

最新文章

  1. 广义线性模型(Generalized Linear Models)
  2. 如何修复Outlook 2007源文件.PST及性能优化补丁
  3. [bzoj1618][Usaco2008 Nov]购买干草
  4. Python 主成分分析PCA
  5. Android开发:第五日番外——过时的函数和被横杠的函数
  6. acdream 1148 GCD SUM 莫比乌斯反演 ansx,ansy
  7. Struts2 的 helloworld
  8. TCP/IP三次握手
  9. 【nodemailer】之 work with mustache
  10. 菜鸟日记之JSP二 内置对象的理解
  11. WebService的相关使用
  12. Vulkan Tutorial 24 Descriptor pool and sets
  13. zabbix安装及简单使用备注
  14. C++输出
  15. java8新的时间日期库及使用示例
  16. vue axios 封装(一)
  17. springfox-swagger2
  18. PowerDesigner表创建脚本双引号问题
  19. java中转义字符和路径符
  20. Linux中Kill掉进程的10种方法

热门文章

  1. boost 编译 asio 程序,简单socket 编程
  2. 浅谈字符串哈希 By cellur925
  3. Windows API 搭建OpenGL窗口
  4. Jmeter之聚合报告
  5. h5-27-存储/读取JS对象
  6. 你不知道的border-radius
  7. bootstrap div 固定
  8. IIS6配置FastCGI遇到ERROR5的解决方法
  9. Jquery 中使用String.Format
  10. OpenGL 透视投影推导图解