2005年12月30日 星期五 20:41
hello python:
《dive into python》3.5节的3.11例程中:
*class* UserDict: [image: 1]
*def** __init__*(self, dict=None): [image: 2]
self.data = {} [image: 3]
*if* dict *is* *not* None: self.update(dict) [image: 4] [image: 5]
最后一行应为 self.data.update(dict)
错误难免,但是limoduo 翻译的中文版中也没有修改。
大家再版时候记得修改。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20051230/f486575e/attachment.htm
2005年12月30日 星期五 20:47
在05-12-30,li fan <fanlix at gmail.com> 写道: > > hello python: > > 《dive into python》3.5节的3.11例程中: > class UserDict: > def __init__(self, dict=None): > self.data = {} > if dict is not None: self.update(dict) > > 最后一行应为 self.data.update(dict) > > 错误难免,但是limoduo 翻译的中文版中也没有修改。 > 大家再版时候记得修改。 > 只顾得翻译根本没注意。呵呵。 -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit
Zeuux © 2025
京ICP备05028076号