2004年08月12日 星期四 13:58
看来我这么做,逻辑上就是错误的了? --- limodou <chatme at 263.net> 的正文: > mike gaul,您好! > > 好象没人这么做。 > > ======= 2004-08-12 10:17:56 您在来信中写道:======= > > >就是,我创建一个类 > >class abc > >我希望在abc中有一个方法remove,用来删除自己的。 > >那么,当 > >a = abc > >a.remove() > >这样,就可以把a删除。 > >类似于del > a,但是我希望用类内部的方法来实现,可以吗? > > > > --- limodou <chatme at 263.net> 的正文: > >> mike gaul,您好! > >> > >> 不懂你要做什么? > >> > >> ======= 2004-08-12 10:08:08 > 您在来信中写道:======= > >> > >> >就是希望在类中有一个方法,用来删除自己。 > >> >那么,当用这个类创建一个实例的时候,就可以用 > >> >obj.delself()方法删除自己。 > >> > > >> > >>_________________________________________________________ > >> >Do You Yahoo!? > >> >150万曲MP3疯狂搜,带您闯入音乐殿堂 > >> >http://music.yisou.com/ > >> >美女明星应有尽有,搜遍美图、艳图和酷图 > >> >http://image.yisou.com > >> >1G就是1000兆,雅虎电邮自助扩容! > >> > >>http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ > >> >_______________________________________________ > >> >python-chinese list > >> >python-chinese at lists.python.cn > >> >http://python.cn/mailman/listinfo/python-chinese > >> > > >> > >> = = = = = = = = = = = = = = = = = = = = > >> > >> > >> 致 > >> 礼! > >> > >> > >> limodou > >> chatme at 263.net > >> 2004-08-12 > >> > >> > _______________________________________________ > >> python-chinese list > >> python-chinese at lists.python.cn > >> http://python.cn/mailman/listinfo/python-chinese > >> > > > >_________________________________________________________ > >Do You Yahoo!? > >150万曲MP3疯狂搜,带您闯入音乐殿堂 > >http://music.yisou.com/ > >美女明星应有尽有,搜遍美图、艳图和酷图 > >http://image.yisou.com > >1G就是1000兆,雅虎电邮自助扩容! > >http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ > >_______________________________________________ > >python-chinese list > >python-chinese at lists.python.cn > >http://python.cn/mailman/listinfo/python-chinese > > > > = = = = = = = = = = = = = = = = = = = = > > > 致 > 礼! > > > limodou > chatme at 263.net > 2004-08-12 > > > _______________________________________________ > python-chinese list > python-chinese at lists.python.cn > http://python.cn/mailman/listinfo/python-chinese > _________________________________________________________ Do You Yahoo!? 150万曲MP3疯狂搜,带您闯入音乐殿堂 http://music.yisou.com/ 美女明星应有尽有,搜遍美图、艳图和酷图 http://image.yisou.com 1G就是1000兆,雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
2004年08月12日 星期四 14:04
Hollo mike: 不是逻辑上,而是目的性上?! 只是想印证想法嘛? Python 有可靠的垃圾处理机制, 无用的对象会自动清除的,除非你自个儿无限制的快速创建无用对象来创造病毒,否则不用担心内存,变量什么东西, 只管干你真正想于的就好! /******** [2004-08-12]14:02:29 ; mike wrote: mike gaul> 看来我这么做,逻辑上就是错误的了? mike gaul> --- limodou <chatme at 263.net> 的正文: >> mike gaul,您好! >> >> 好象没人这么做。 >> >> ======= 2004-08-12 10:17:56 您在来信中写道:======= >> >> >就是,我创建一个类 >> >class abc >> >我希望在abc中有一个方法remove,用来删除自己的。 >> >那么,当 >> >a = abc >> >a.remove() >> >这样,就可以把a删除。 >> >类似于del >> a,但是我希望用类内部的方法来实现,可以吗? >> > >> > --- limodou <chatme at 263.net> 的正文: >> >> mike gaul,您好! >> >> >> >> 不懂你要做什么? >> >> >> >> ======= 2004-08-12 10:08:08 >> 您在来信中写道:======= >> >> >> >> >就是希望在类中有一个方法,用来删除自己。 >> >> >那么,当用这个类创建一个实例的时候,就可以用 >> >> >obj.delself()方法删除自己。 >> >> > >> >> >> >>>_________________________________________________________ >> >> >Do You Yahoo!? >> >> >150万曲MP3疯狂搜,带您闯入音乐殿堂 >> >> >http://music.yisou.com/ >> >> >美女明星应有尽有,搜遍美图、艳图和酷图 >> >> >http://image.yisou.com >> >> >1G就是1000兆,雅虎电邮自助扩容! >> >> >> >>>http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ >> >> >_______________________________________________ >> >> >python-chinese list >> >> >python-chinese at lists.python.cn >> >> >http://python.cn/mailman/listinfo/python-chinese >> >> > >> >> >> >> = = = = = = = = = = = = = = = = = = = = >> >> >> >> >> >> 致 >> >> 礼! >> >> >> >> >> >> limodou >> >> chatme at 263.net >> >> 2004-08-12 >> >> >> >> > _______________________________________________ >> >> python-chinese list >> >> python-chinese at lists.python.cn >> >> http://python.cn/mailman/listinfo/python-chinese >> >> >> > >> >>_________________________________________________________ >> >Do You Yahoo!? >> >150万曲MP3疯狂搜,带您闯入音乐殿堂 >> >http://music.yisou.com/ >> >美女明星应有尽有,搜遍美图、艳图和酷图 >> >http://image.yisou.com >> >1G就是1000兆,雅虎电邮自助扩容! >> >>http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ >> >_______________________________________________ >> >python-chinese list >> >python-chinese at lists.python.cn >> >http://python.cn/mailman/listinfo/python-chinese >> > >> >> = = = = = = = = = = = = = = = = = = = = >> >> >> 致 >> 礼! >> >> >> limodou >> chatme at 263.net >> 2004-08-12 >> >> > _______________________________________________ >> python-chinese list >> python-chinese at lists.python.cn >> http://python.cn/mailman/listinfo/python-chinese >> mike gaul> _________________________________________________________ mike gaul> Do You Yahoo!? mike gaul> 150万曲MP3疯狂搜,带您闯入音乐殿堂 mike gaul> http://music.yisou.com/ mike gaul> 美女明星应有尽有,搜遍美图、艳图和酷图 mike gaul> http://image.yisou.com mike gaul> 1G就是1000兆,雅虎电邮自助扩容! mike gaul> http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ mike gaul> _______________________________________________ mike gaul> python-chinese list mike gaul> python-chinese at lists.python.cn mike gaul> http://python.cn/mailman/listinfo/python-chinese ********************************************/ -- Free as in Freedom Zoom.Quiet #=========================================# ]Time is unimportant, only life important![ #=========================================# sender is the Bat!2.12.00
2004年08月12日 星期四 14:30
mike gaul,您好! 逻辑上不见得有什么错误,但没见过有这么用的。如果创建了,又要删除,那为什么还要建它呢。可以使用别的方法,为什么一定要自已把自已删除呢。 ======= 2004-08-12 13:58:48 您在来信中写道:======= >看来我这么做,逻辑上就是错误的了? > > --- limodou <chatme at 263.net> 的正文: >> mike gaul,您好! >> >> 好象没人这么做。 >> >> ======= 2004-08-12 10:17:56 您在来信中写道:======= >> >> >就是,我创建一个类 >> >class abc >> >我希望在abc中有一个方法remove,用来删除自己的。 >> >那么,当 >> >a = abc >> >a.remove() >> >这样,就可以把a删除。 >> >类似于del >> a,但是我希望用类内部的方法来实现,可以吗? >> > >> > --- limodou <chatme at 263.net> 的正文: >> >> mike gaul,您好! >> >> >> >> 不懂你要做什么? >> >> >> >> ======= 2004-08-12 10:08:08 >> 您在来信中写道:======= >> >> >> >> >就是希望在类中有一个方法,用来删除自己。 >> >> >那么,当用这个类创建一个实例的时候,就可以用 >> >> >obj.delself()方法删除自己。 >> >> > >> >> >> >>>_________________________________________________________ >> >> >Do You Yahoo!? >> >> >150万曲MP3疯狂搜,带您闯入音乐殿堂 >> >> >http://music.yisou.com/ >> >> >美女明星应有尽有,搜遍美图、艳图和酷图 >> >> >http://image.yisou.com >> >> >1G就是1000兆,雅虎电邮自助扩容! >> >> >> >>>http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ >> >> >_______________________________________________ >> >> >python-chinese list >> >> >python-chinese at lists.python.cn >> >> >http://python.cn/mailman/listinfo/python-chinese >> >> > >> >> >> >> = = = = = = = = = = = = = = = = = = = = >> >> >> >> >> >> 致 >> >> 礼! >> >> >> >> >> >> limodou >> >> chatme at 263.net >> >> 2004-08-12 >> >> >> >> > _______________________________________________ >> >> python-chinese list >> >> python-chinese at lists.python.cn >> >> http://python.cn/mailman/listinfo/python-chinese >> >> >> > >> >>_________________________________________________________ >> >Do You Yahoo!? >> >150万曲MP3疯狂搜,带您闯入音乐殿堂 >> >http://music.yisou.com/ >> >美女明星应有尽有,搜遍美图、艳图和酷图 >> >http://image.yisou.com >> >1G就是1000兆,雅虎电邮自助扩容! >> >>http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ >> >_______________________________________________ >> >python-chinese list >> >python-chinese at lists.python.cn >> >http://python.cn/mailman/listinfo/python-chinese >> > >> >> = = = = = = = = = = = = = = = = = = = = >> >> >> 致 >> 礼! >> >> >> limodou >> chatme at 263.net >> 2004-08-12 >> >> > _______________________________________________ >> python-chinese list >> python-chinese at lists.python.cn >> http://python.cn/mailman/listinfo/python-chinese >> > >_________________________________________________________ >Do You Yahoo!? >150万曲MP3疯狂搜,带您闯入音乐殿堂 >http://music.yisou.com/ >美女明星应有尽有,搜遍美图、艳图和酷图 >http://image.yisou.com >1G就是1000兆,雅虎电邮自助扩容! >http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/ >_______________________________________________ >python-chinese list >python-chinese at lists.python.cn >http://python.cn/mailman/listinfo/python-chinese > = = = = = = = = = = = = = = = = = = = = 致 礼! limodou chatme at 263.net 2004-08-12
2004年08月12日 星期四 14:56
这期的程序员杂志有一篇文章《中国开源的冰与火》中探讨了一些开源问题,大家可以看一下。
Zeuux © 2025
京ICP备05028076号