作者monomorium (挑战才要开始)
看板Python
标题Re: [问题] 再请教一个问题
时间Sun Apr 27 17:11:12 2008
Python的中文线上资源相当贫乏(好像书籍也是)
大体上 除了一些开发者网志上的零星文章之外
观念上写的比较多的(或是比较完整)
目前我只找的到这些文件
http://www.freebsd.org.hk/html/python/tut_tw/tut.html
Python教学文件--译者:周译乐
http://www.chinesepython.org/pythonfoundry/ossacc/
Python语言入门--作者:叶平
http://www.chinesepython.org/pythonfoundry/marrpydoc/
Python之旅--作者:marr
http://www.iis.sinica.edu.tw/~marr/python/
Python Handbook--作者:marr
http://larc.ee.nthu.edu.tw/~ythsing/python.html
Python Tutorial--作者:邢育肇
如果不怕英文 英文资源会丰富很多
可以参考Magnus Lie Hetland的Instant Python
http://hetland.org/writing/instant-python.html
其中提到的
"Called self in this example, which is customary."
"Some method names, like __init__ (with two underscores
before and after), are pre-defined, and mean special
things. __init__ is the name of the constructor of the
class, i.e. it is the function that is called when you
create an instance."
也许可以提供一些英文的诠释
另外一份依GNU Free Documentation License许可的线上教材
里面 14. Classes and objects
http://openbookproject.net/thinkcs/python/english2e/ch14.xhtml
对於class的用法说明的比较清楚
还是得要留心一点 Python里有非常多(大量)built-in的东西
不论是函数、模组(或称函式库)、例外抑或变数、常数等等
详细的内容 请参考Python Library Reference
http://docs.python.org/lib/lib.html
※ 引述《gasolin (小g)》之铭言:
: ※ 引述《purestone (天空之子)》之铭言:
: : 你写了好多,我也看了好多,不过还是不懂.......
: : 不管怎样,谢谢你花这麽时间和心力回应~
: 你可以补充一下物件导向设计的概念,
: 刚刚用 wikipedia 上的虚拟码范例改成了周蟒版,
: 可以参考看看
: http://zh.wikipedia.org/wiki/ZhPy#.E9.A1.9E.E5.88.A5
--
门外汉
http://aockc.blogspot.com/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.169.129.209
※ 编辑: monomorium 来自: 118.169.135.61 (04/29 22:58)