【翻译】阅读优秀的代码

简介: 【翻译】阅读优秀的代码

摄影:产品经理

厨师: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. 部分内容为意译。

目录
相关文章
|
1月前
|
人工智能 Docker 索引
推荐一个双语对照的 PDF 翻译工具的开源项目:PDFMathTranslate
今天给大家推荐一个**双语对照的 PDF 翻译工具**的开源项目:PDFMathTranslate 。
152 26
推荐一个双语对照的 PDF 翻译工具的开源项目:PDFMathTranslate
|
Web App开发 人工智能 API
有了这个AI翻译插件,我把其他的翻译工具都删了
有了这个AI翻译插件,我把其他的翻译工具都删了
385 0
|
API 语音技术 vr&ar
基于Python3(Autosub)以及Ffmpeg配合GoogleTranslation(谷歌翻译)为你的影片实现双语版字幕(逐字稿)
为影片加字幕其实是一件非常耗费时间的事情,尤其是对于打字慢的朋友来说。当然不光为影片加字幕,在其他领域,类似的逐字稿也是工作中避免不了的内容。比如写论文,如果内容中有访谈,就必须要附上逐字稿,又或者是会议的记录等等。本次使用基于Python3的AutoSub库对实时语音进行识别,然后再通过GoogleTranslation的在线API接口对语音识别后的内容进行翻译,这样就可以得到一份双语字幕(逐字稿),这里的双语不只针对国语+英语组合,也可以包含其他国家,包括小语种地区,非常方便。
基于Python3(Autosub)以及Ffmpeg配合GoogleTranslation(谷歌翻译)为你的影片实现双语版字幕(逐字稿)
|
API Python
03 奇妙的Python库之【googletrans(翻译)】
03 奇妙的Python库之【googletrans(翻译)】
QT QTranslator 中英文翻译linguist语言家 翻译过程
QT QTranslator 中英文翻译linguist语言家 翻译过程
QT QTranslator 中英文翻译linguist语言家 翻译过程
|
自然语言处理 API 数据安全/隐私保护
Zotero翻译插件Zotero PDF Translate无法正常翻,翻译api接入
Zotero翻译插件Zotero PDF Translate无法正常翻,翻译api接入
|
JavaScript 前端开发 程序员
英语翻译太难?我一怒之下写了两个翻译脚本
它来了!它来了!作为一名程序员,英语句子不会翻译,这我不能忍,必须安排脚本!!!
162 1
英语翻译太难?我一怒之下写了两个翻译脚本
|
缓存 Ubuntu Linux
我手撸了一个划线翻译工具!
这里将要介绍的是一种在 Linux 平台实现的划词翻译工具,当然在考虑自己实现一个如此功能的工具前,本人也是在网上搜索了一些在 Linux 平台实现的类似的开源工具,例如 pdfTranslator,popup-dict,但它们的安装和配置都显得比较麻烦,而且使用起来也并不方便。
158 0
|
数据采集 API Python
Python爬虫:调用百度翻译接口实现中英翻译功能
Python爬虫:调用百度翻译接口实现中英翻译功能
735 0
|
API
根据译文片段预测翻译作者
本教程的目的是带领大家学会,根据译文片段预测翻译作者 本次用到的数据集是三个 txt 文本,分别是 cowper.txt、derby.txt、butler.txt ,该文本已经经过一些预处理,去除了表头,页眉等
189 0

热门文章

最新文章

相关实验场景

更多