前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【翻译】阅读优秀的代码

【翻译】阅读优秀的代码

作者头像
青南
发布2019-08-13 14:26:41
7670
发布2019-08-13 14:26:41
举报
文章被收录于专栏:未闻Code未闻Code

摄影:产品经理

厨师:kingname

One of the secrets of becoming a great Python programmer is to read, understand, and comprehend excellent code.

阅读、理解优秀的代码是成为优秀Python程序员的秘诀。

Excellent code typically follows the guidelines outlined in Code Style, and does its best to express a clear and concise intent to the reader.

优秀的代码符合编码规范,并尽可能向读者表达清晰、简洁的意图。

Included below is a list of recommended Python projects for reading. Each one of these projects is a paragon of Python coding.

下面推荐一些Python项目。它们是Python编码的典范。

  • Howdoi Howdoi is a code search tool, written in Python.
  • Howdoi Howdoi是Python写的代码搜索工具。

  • Flask Flask is a microframework for Python based on Werkzeug and Jinja2. It’s intended for getting started very quickly and was developed with best intentions in mind.
  • Flask Flask是基于Werkzeug和Jinja2的Python微框架。让你快速入门,并把精力放在开发上(而不是像Django一样还得学半天框架)。

  • Diamond Diamond is a Python daemon that collects metrics and publishes them to Graphite or other backends. It is capable of collecting CPU, memory, network, I/O, load, and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
  • Diamond Diamond是一个Python守护程序,它收集各种指标并把他们发布给 Graphite或者其他后端。它能够收集CPU、内存、网络、I/O、负载和硬盘指标。另外,它提供了用于实现自定义收集器的API,以便于从几乎任何地方收集数据。

  • Werkzeug Werkzeug started as a simple collection of various utilities for WSGI applications and has become one of the most advanced WSGI utility modules. It includes a powerful debugger, full-featured request and response objects, HTTP utilities to handle entity tags, cache control headers, HTTP dates, cookie handling, file uploads, a powerful URL routing system, and a bunch of community-contributed addon modules.
  • Werkzeug Werkzeug一开始仅仅是大量的WSGI应用程序集合,现在已经成为了最先进的WSGI实用模块之一。它包含了强大的调试器,功能齐全的请求和响应对象,处理实体标签的HTTP组件,缓存控制头,HTTP日期,cookie处理,文件上传,强大的URL路由系统和大量的社区贡献插件模块。

  • Requests Requests is an Apache2 Licensed HTTP library, written in Python, for human beings.
  • Requests Requests是使用Apache2许可的HTTP库,使用Python编写,供人类使用。

  • Tablib Tablib is a format-agnostic tabular dataset library, written in Python.
  • Tablib Tablib是未知格式表格数据集库,使用Python开发。

以上内容翻译自https://docs.python-guide.org/writing/reading/ 作者为Kenneth Reitz. 部分内容为意译。

本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2019-08-11,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 未闻Code 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档