[python-chinese] add class member dynamicly

cry zyqmail在tom.com
星期五 九月 1 09:05:10 HKT 2006


limodou,您好!

谢谢。

在 2006-09-01 08:43:00 您写道:
>On 9/1/06, cry <zyqmail在tom.com> wrote:
>> python,您好!
>>
>> class里面,可以动态的增加类的成员吗?怎么做呢?
>>
>使用setattr()
>
>-- 
>I like python!
>My Blog: http://www.donews.net/limodou
>UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
>UliPad Maillist: http://groups.google.com/group/ulipad
>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

                    致
礼!

            cry
            zyqmail在tom.com




关于邮件列表 python-chinese 的更多信息