Python论坛  - 讨论区

标题:[python-chinese] 也问一个关于内存的问题

2005年06月14日 星期二 12:53

Qutr qutianrang at gmail.com
Tue Jun 14 12:53:27 HKT 2005

python-chinese :

  大家好!

如果我有一个字典
a = {1:"a", 2:"b", 3:"c", 4:"d", 5:"e",.............}
把该字典中的内容常驻内存,
当用 del a[1] 后内存占用会不会降低?




Qutr , qutianrang at gmail.com 
2005-6-14 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050614/a6640bba/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年06月14日 星期二 13:09

Jason Liu telecomliu at gmail.com
Tue Jun 14 13:09:04 HKT 2005

不一定,看引用数到没到0

在 05-6-14,Qutr<qutianrang at gmail.com> 写道:
> python-chinese :
> 
>   大家好!
>  
> 如果我有一个字典
> a = {1:"a", 2:"b", 3:"c", 4:"d", 5:"e",.............}
> 把该字典中的内容常驻内存,
> 当用 del a[1] 后内存占用会不会降低?
>  
>  
>  
>  
> Qutr, qutianrang at gmail.com
> 2005-6-14 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号