推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
codists
V2EX  ›  Python

翻译:《实用的 Python 编程》04_00_Overview

  •  
  •   codists ·
    codists · Mar 6, 2021 · 2055 views
    This topic created in 1893 days ago, the information mentioned may be changed or developed.

    4. 类和对象

    到目前为止,我们的程序仅使用了内置的 Python 数据类型。本节,我们介绍类( class )和对象( object )的概念。你将学习 class 语句,该语句允许你创建新的对象。我们还将介绍继承( inheritance )的概念,继承通常用于构建可扩展的程序。最后,我们将研究类的一些其它特性,包括特殊方法,动态属性查找以及自定义异常。

    注:完整翻译见 https://github.com/codists/practical-python-zh

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5355 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 09:23 · PVG 17:23 · LAX 02:23 · JFK 05:23
    ♥ Do have faith in what you're doing.