Files
python3-cookbook/README.md

142 lines
6.2 KiB
Markdown
Raw Normal View History

2014-08-19 14:58:15 +08:00
2018-06-15 10:03:24 +08:00
[![GitHub issues](https://img.shields.io/github/issues/yidao620c/python3-cookbook.svg)](https://github.com/yidao620c/python3-cookbook/issues)
[![License][licensesvg]][license]
[![Github downloads](https://img.shields.io/github/downloads/yidao620c/python3-cookbook/total.svg)](https://github.com/yidao620c/python3-cookbook/releases/latest)
[![GitHub release](https://img.shields.io/github/release/yidao620c/python3-cookbook.svg)](https://github.com/yidao620c/python3-cookbook/releases)
2020-10-01 00:09:23 +05:30
# 《Python Cookbook in Chinese》 3rd Edition 翻译
2015-12-29 16:29:38 +08:00
2017-12-07 12:00:30 +08:00
《Python Cookbook》3rd 中文版3.0.0正式发布啦 ^_^ ——2017/12/07
2015-12-29 16:29:38 +08:00
2017-12-09 15:43:15 +08:00
在线阅读地址:<http://python3-cookbook.readthedocs.org/zh_CN/latest/>
2015-12-29 16:29:38 +08:00
2017-12-09 12:40:09 +08:00
最新版(3.0.0)下载
2017-12-09 15:43:15 +08:00
* 中文简体版PDF下载地址<https://pan.baidu.com/s/1pL1cI9d>
* 中文繁体版PDF下载地址<https://pan.baidu.com/s/1qX97VJI>
2017-12-07 12:00:30 +08:00
2020-10-17 23:40:52 +08:00
## 关于作者David Beazley
本书作者是David Beazley大神一位独立的计算机科学家、教育家以及有着35年开发经验的软件开发者。
他在Python社区一直都很活跃编写了很多的[python包](http://www.dabeaz.com/software.html)
发表了很多的公开[演讲视频](http://www.dabeaz.com/talks.html) 以及
[编程教程](http://www.dabeaz.com/tutorials.html)。
同时还是[Python Essential Reference](http://www.dabeaz.com/per.html) 以及
[ Python Cookbook (O'Reilly Media)](http://www.dabeaz.com/cookbook.html)的作者。
David Beazley大神的博客地址<http://www.dabeaz.com/>
2016-01-21 10:08:04 +08:00
2017-12-09 15:43:15 +08:00
## 译者的话
2014-09-04 11:11:56 +08:00
人生苦短我用Python
2014-08-19 14:58:15 +08:00
2014-09-04 11:11:56 +08:00
译者一直坚持使用Python3因为它代表了Python的未来。虽然向后兼容是它的硬伤但是这个局面迟早会改变的
2014-08-20 20:26:10 +08:00
而且Python3的未来需要每个人的帮助和支持。
目前市面上的教程书籍网上的手册大部分基本都是2.x系列的专门基于3.x系列的书籍少的可怜。
最近看到一本《Python Cookbook》3rd Edition完全基于Python3写的也很不错。
为了Python3的普及我也不自量力想做点什么事情。于是乎就有了翻译这本书的冲动了
2014-08-20 20:06:48 +08:00
这不是一项轻松的工作,却是一件值得做的工作:不仅方便了别人,而且对自己翻译能力也是一种锻炼和提升。
2014-08-19 15:24:33 +08:00
2014-09-04 11:11:56 +08:00
译者会坚持对自己每一句的翻译负责,力求高质量。但受能力限制,也难免有疏漏或者表意不当的地方。
2017-12-09 15:43:15 +08:00
如果译文中有什么错漏的地方请大家见谅,也欢迎大家随时指正。
2014-08-19 15:07:15 +08:00
2017-12-09 15:29:57 +08:00
目前已经正式完成了整本书的翻译工作历时2年不管怎样还是坚持下来了。现在共享给python社区。
2019-08-23 08:08:59 +08:00
**欢迎关注我的个人公众号“飞污熊”我会定期分享一些自己的Python学习笔记和心得。**
2019-08-23 08:04:56 +08:00
![公众号](https://github.com/yidao620c/python3-cookbook/raw/master/exts/wuxiong.jpg)
2014-08-19 15:07:15 +08:00
2017-12-09 15:43:15 +08:00
## 项目说明
2014-08-19 16:36:13 +08:00
2017-12-09 15:43:15 +08:00
* 所有文档均使用reStructuredText编辑参考 [reStructuredText](http://docutils.sourceforge.net/docs/user/rst/quickref.html)
* 当前文档生成托管在 [readthedocs](https://readthedocs.org/) 上
* 生成的文档预览地址: [python3-cookbook](http://python3-cookbook.readthedocs.org/zh_CN/latest/)
* 使用了python官方文档主题 [sphinx-rtd-theme](https://github.com/snide/sphinx_rtd_theme) 也是默认的主题default.
2017-12-10 15:21:35 +01:00
* 书中所有代码均在python 3.6版本下面运行通过所有源码放在cookbook包下面
2014-08-19 16:36:13 +08:00
2017-12-09 15:43:15 +08:00
```
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
2014-08-19 16:36:13 +08:00
2017-12-09 15:43:15 +08:00
if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
2014-08-19 16:36:13 +08:00
2017-12-09 15:43:15 +08:00
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
```
2015-01-06 16:46:08 +08:00
2017-12-09 15:43:15 +08:00
## 其他贡献者
2015-05-19 14:03:25 +08:00
2018-09-03 14:45:28 +08:00
排名不分先后:
1. Yu Longjun (https://github.com/yulongjun)
1. tylinux (https://github.com/tylinux)
1. Kevin Guan (https://github.com/K-Guan)
1. littlezz (https://github.com/littlezz)
1. cclauss (https://github.com/cclauss)
1. Yan Zhang (https://github.com/Eskibear)
1. xiuyanduan (https://github.com/xiuyanduan)
1. FPlust (https://github.com/fplust)
1. lambdaplus (https://github.com/lambdaplus)
2015-12-28 17:15:47 +08:00
1. Tony Yang (liuliu036@gmail.com)
2018-09-03 14:45:28 +08:00
[更多贡献者](https://github.com/yidao620c/python3-cookbook/graphs/contributors)
2014-09-04 11:11:56 +08:00
2015-01-06 16:42:50 +08:00
-----------------------------------------------------
2015-01-06 16:46:08 +08:00
2017-12-09 15:43:15 +08:00
## 关于源码生成PDF文件
有网友提问怎样通过源码生成PDF文件由于这个步骤介绍有点长不适合放在README里面
我专门写了篇博客专门介绍怎样通过ReadtheDocs托管文档怎样自己生成PDF文件大家可以参考一下。
2018-06-15 10:03:24 +08:00
<https://www.xncoding.com/2017/01/22/fullstack/readthedoc.html>
2018-06-15 10:03:24 +08:00
另外关于生成的PDF文件中会自动生成标题编号的问题有热心网友 [CarlKing5019](https://github.com/CarlKing5019)提出了解决方案,
2018-06-15 10:07:29 +08:00
请参考issues108
2017-12-09 15:43:15 +08:00
<https://github.com/yidao620c/python3-cookbook/issues/108>
再次感谢每一位贡献者。
-----------------------------------------------------
2017-12-09 15:43:15 +08:00
## How to Contribute
2015-01-06 16:42:50 +08:00
2015-03-07 11:25:39 +08:00
You are welcome to contribute to the project as follow
2015-01-06 16:42:50 +08:00
* fork project and commit pull requests
2015-01-06 16:42:50 +08:00
* add/edit wiki
* report/fix issue
* code review
* commit new feature
* add testcase
Meanwhile you'd better follow the rules below
* It's *NOT* recommended to submit a pull request directly to `master` branch. `develop` branch is more appropriate
* Follow common Python coding conventions
2015-04-28 15:13:01 +08:00
* Add the following [license] in each source file
2015-01-06 16:42:50 +08:00
2017-12-09 15:43:15 +08:00
## License
2015-01-06 16:42:50 +08:00
(The Apache License)
2018-06-15 10:03:24 +08:00
Copyright (c) 2014-2018 [Xiong Neng](<https://www.xncoding.com/>) and other contributors
2015-01-06 16:42:50 +08:00
2015-03-07 11:25:39 +08:00
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
2015-01-06 16:42:50 +08:00
http://www.apache.org/licenses/LICENSE-2.0
2015-03-07 11:25:39 +08:00
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
2018-06-15 10:03:24 +08:00
[licensesvg]: https://img.shields.io/hexpm/l/plug.svg
[license]: http://www.apache.org/licenses/LICENSE-2.0