geekdoc-python-zh/docs/py-bst-prac
wizardforcel 7fc043854b 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
..
README.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
SUMMARY.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_01.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_02.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_03.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_04.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_05.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_06.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_07.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_08.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_09.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_10.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_11.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_12.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_13.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_14.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_15.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_16.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_17.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_18.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_19.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_20.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_21.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_22.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_23.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_24.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_25.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_26.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_27.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_28.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_29.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_30.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_31.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_32.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_33.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_34.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_35.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_36.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_37.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_38.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_39.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_40.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_41.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00
py-bst-prac_42.md 2025-10-02 17:06:05 2025-10-02 17:06:05 +08:00

README.md

Python 最佳实践指南

欢迎来到 Python 最佳实践指南。

本指南目前持续不断地更新与完善。 如果你有意一起翻译, 在 GitHub fork 我 [https://github.com/Prodesire/Python-Guide-CN]!

这份 主要是自我见解 的指南旨在为 Python 初学者和专家提供一个 关于 Python 安装、配置、和日常使用的最佳实践手册。

开始吧

这部分指南关注搭建你的 Python 环境。

  • 选择一个解释器

    • Python 的现状 (2 vs 3)
    • 建议
    • 所以.... 3
    • 实现
  • 正确地安装 Python

  • 正确地安装 Python
  • 在 Mac OS X 上安装 Python
  • 在 Windows 上安装 Python
  • 在 Linux 上安装 Python

写出优雅的代码

这部分指南关注编写 Python 代码的最佳实践。

  • 结构化你的工程
    • 仓库的结构
    • 结构是一把钥匙
    • 模块
    • 面向对象编程
    • 装饰器
    • 动态类型
    • 可变和不可变类型
    • 更多阅读
  • 代码风格
    • 一般概念
    • 习语Idiom
    • Python 之禅
    • PEP 8
    • 约定
  • 阅读好的代码
  • 文档
    • 项目文档
    • 项目发布
    • 代码文档建议
    • 其他工具
  • 测试你的代码
    • 基本
    • 工具
  • 日志Logging
    • ... 或者用打印(Print)?
    • 库中的日志
    • 应用程序中的日志
  • 常见陷阱
    • 可变默认参数
    • 迟绑定闭包
  • 选择一个许可

场景/方案指南

这部分指南关注基于不同场景的工具和模块推荐。

  • 网络应用
    • HTTP
    • 分布式系统
  • Web 应用
    • Context
    • 框架
    • Web 服务端
    • WSGI 服务器
    • 服务端最佳实践
    • Hosting
    • 模板
  • HTML 抓取
    • Web 抓取
    • lxml 和 Requests
  • 命令行应用
    • Clint
    • Click
    • docopt
    • Plac
    • Cliff
  • GUI 应用
    • Camelot
    • Cocoa
    • GTk
    • Kivy
    • PyObjC
    • PySide
    • PyQt
    • PyjamasDesktop (pyjs Desktop)
    • Qt
    • Tk
    • wxPython
  • 数据库
    • DB-API
    • SQLAlchemy
    • Django ORM
    • peewee
    • PonyORM
    • SQLObject
  • 网络
    • Twisted
    • PyZMQ
    • gevent
  • 系统管理
    • Fabric
    • Salt
    • Psutil
    • Ansible
    • Chef
    • Puppet
    • Blueprint
    • Buildout
  • 持续集成
    • 为什么?
    • Jenkins
    • Buildbot
    • Mule
    • Tox
    • Travis-CI
  • 速度
    • Context
    • C 扩展
    • Threading
  • 科学应用
    • 背景
    • 工具
    • 资源
  • 图像处理
    • Python 图形库
    • 开源计算机视觉OpenCv
  • XML 解析
    • untangle
    • xmltodict
  • JSON
    • 解析 JSON
    • simplejson
  • 密码学
    • Cryptography
    • PyCrypto
  • 与 C/C++库交互
    • C 语言外部函数接口(CFFI)
    • ctypes
    • SWIG
    • Boost.Python

部署优雅的代码

这部分指南关注部署你的 Python 代码。

  • 打包你的代码
    • 打包的多种方式
    • 对于 Python 开发者
    • 在 Linux 上分发
  • Freezing 你的代码
    • Freezing 的多种方式
    • 比较
    • Windows
    • OS X
    • Linux

开发环境

  • 你的开发环境
    • 文本编辑器
    • IDEs
    • 解释器工具
    • 其他工具
  • 虚拟环境
    • virtualenv
    • virtualenvwrapper
    • virtualenv-burrito
    • autoenv
  • Pip 和 Virtualenv 的更多配置
    • pip 来要求一个激活的虚拟环境
    • 存下包以供将来使用

额外关注

这部分指南比较零散,先了解一些 Python 的背景知识,再关注下一步。

  • 介绍
    • 关于这份指南
  • 社区
    • BDFL
    • Python 软件基金会
    • PEPs
    • Python 会议
    • Python 用户组
  • 学习 Python
    • 初学者
    • 进阶者
    • 工程师和科学家
    • 各种各样的话题
    • 参考
  • 文档
    • 官方文档
    • Read the Docs
    • pydoc
  • 新闻
    • Planet Python
    • /r/python
    • Pycoders Weekly
    • Python Weekly
    • Python News
    • Import Python Weekly

贡献注意点和法律信息如下:

  • 贡献
    • 风格指南
    • 要做的事
  • 许可证
  • 风格指南指引
    • 关联
    • 标题
    • 换行
    • 代码例子
    • 外部链接
    • 指向指南内部章节的链接
    • 注意和警告
    • 要做的事

© 版权所有 2014. A Kenneth Reitz 工程。 Creative Commons Share-Alike 3.0.