推荐学习书目
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 编程》03_00_Overview

  •  
  •   codists ·
    codists · Feb 27, 2021 · 2124 views
    This topic created in 1925 days ago, the information mentioned may be changed or developed.

    3. 程序组织

    到目前为止,我们已经学习了一些 Python 基础知识并编写了一些简短的脚本。但是,当开始编写更大的程序时,我们会想要有条理地组织这些程序。本节将深入讨论关于函数编写,错误处理以及模块的更多细节。最后,您应该能够编写跨多个文件的,并细分为函数的程序。我们还将提供一些有用的代码模板,以编写更有用的脚本。

    • [3.1 函数和脚本编写]
    • [3.2 关于函数的更多细节]
    • [3.3 异常处理]
    • [3.4 模块]
    • [3.5 主模块]
    • [3.6 关于拥抱灵活性的设计讨论]

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

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