2014-08-19 15:24:33 +08:00
|
|
|
|
=========================================================
|
2014-08-20 20:06:48 +08:00
|
|
|
|
《Python Cookbook》 3rd Edition 翻译
|
2014-08-19 15:24:33 +08:00
|
|
|
|
=========================================================
|
2014-08-19 14:58:15 +08:00
|
|
|
|
|
2014-09-13 14:38:08 +08:00
|
|
|
|
在线预览地址: http://python3-cookbook.readthedocs.org/zh_CN/latest/
|
|
|
|
|
|
|
|
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
2015-01-06 16:48:24 +08:00
|
|
|
|
++++++++++++++++
|
2014-09-04 11:11:56 +08:00
|
|
|
|
译者的话
|
2015-01-06 16:48:24 +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
|
|
|
|
译者会坚持对自己每一句的翻译负责,力求高质量。但受能力限制,也难免有疏漏或者表意不当的地方。
|
|
|
|
|
|
如果译文中有什么错漏的地方请大家见谅,也欢迎大家随时指正: yidao620@gmail.com
|
2014-08-19 15:07:15 +08:00
|
|
|
|
|
2015-05-19 14:03:25 +08:00
|
|
|
|
最后也非常欢迎各位pythoner大虾能参与进来,一起加速完成这本书,共享给python社区。
|
|
|
|
|
|
|
|
|
|
|
|
参与方式很简单,参考下面的“How to Contribute”说明。
|
|
|
|
|
|
每一位贡献者我都会记下了,感谢你们!
|
|
|
|
|
|
|
2014-08-19 15:07:15 +08:00
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
2015-01-06 16:42:50 +08:00
|
|
|
|
++++++++++++++++
|
|
|
|
|
|
项目说明
|
|
|
|
|
|
++++++++++++++++
|
2014-08-22 11:19:59 +08:00
|
|
|
|
1. 原版PDF下载地址: http://pan.baidu.com/s/1dDhByJv
|
|
|
|
|
|
#. 所有文档均使用reStructuredText编辑,参考 reStructuredText_
|
|
|
|
|
|
#. 当前文档生成托管在 readthedocs_ 上
|
2014-08-20 20:21:08 +08:00
|
|
|
|
#. 生成的文档预览地址: python3-cookbook_
|
|
|
|
|
|
#. 使用了python官方文档主题 sphinx-rtd-theme_ ,也是默认的主题default.
|
2014-09-13 14:38:08 +08:00
|
|
|
|
#. 书中所有代码均在python 3.4版本下面运行通过,所有源码放在cookbook包下面
|
2014-08-19 15:07:15 +08:00
|
|
|
|
|
2014-08-19 16:36:13 +08:00
|
|
|
|
::
|
|
|
|
|
|
|
2014-08-19 16:43:20 +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
|
|
|
|
|
2014-08-19 16:43:20 +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
|
|
|
|
|
2014-08-19 16:43:20 +08:00
|
|
|
|
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
|
2014-08-19 16:36:13 +08:00
|
|
|
|
|
2015-01-06 16:46:08 +08:00
|
|
|
|
|
2015-05-19 14:03:25 +08:00
|
|
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
++++++++++++++++
|
|
|
|
|
|
主要贡献者
|
|
|
|
|
|
++++++++++++++++
|
|
|
|
|
|
|
2015-09-16 23:31:02 +08:00
|
|
|
|
1. MoguCloud (https://github.com/MoguCloud)
|
2015-05-19 14:10:29 +08:00
|
|
|
|
2. littlezz (zz.at.field@gmail.com)
|
|
|
|
|
|
3. xiaotiaobu (https://github.com/xiaotiaobu)
|
|
|
|
|
|
4. Eskibear (https://github.com/Eskibear)
|
2015-05-22 09:10:18 +08:00
|
|
|
|
5. LiHaoGit (dahao647@gmail.com)
|
|
|
|
|
|
6. Jason Chang (crazycashier@icoud.com)
|
2015-08-01 09:56:52 +08:00
|
|
|
|
7. Yu Longjun (https://github.com/yulongjun)
|
|
|
|
|
|
8. hanxlleon (leonhanxl@gmail.com)
|
|
|
|
|
|
9. slideclick (https://github.com/slideclick)
|
2015-08-20 17:06:38 +08:00
|
|
|
|
10. Tony Yang (liuliu036@gmail.com)
|
|
|
|
|
|
11. nivance (https://github.com/nivance)
|
2015-11-05 14:01:49 +08:00
|
|
|
|
12. robertding (robertdingx@gmail.com)
|
|
|
|
|
|
13. LxMit (https://github.com/LxMit)
|
|
|
|
|
|
14. Kevin Guan (https://github.com/K-Guan)
|
|
|
|
|
|
15. R·Shishioh (https://github.com/Lrevor)
|
|
|
|
|
|
16. Yan Ma (furzoommn@gmail.com)
|
|
|
|
|
|
17. Taff Gao (gaotongfei1995@gmail.com)
|
2014-09-04 11:11:56 +08:00
|
|
|
|
|
2015-01-06 16:42:50 +08:00
|
|
|
|
-----------------------------------------------------
|
2015-01-06 16:46:08 +08:00
|
|
|
|
|
2015-01-07 14:35:41 +08:00
|
|
|
|
+++++++++++++++++++
|
2015-01-06 16:48:24 +08:00
|
|
|
|
How to Contribute
|
2015-01-07 14:35:41 +08:00
|
|
|
|
+++++++++++++++++++
|
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
|
|
|
|
|
2015-01-07 14:35:41 +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
|
|
|
|
|
2015-01-06 16:48:24 +08:00
|
|
|
|
++++++++++++++++
|
|
|
|
|
|
License
|
|
|
|
|
|
++++++++++++++++
|
2015-01-06 16:42:50 +08:00
|
|
|
|
|
|
|
|
|
|
(The Apache License)
|
|
|
|
|
|
|
2015-05-19 14:06:14 +08:00
|
|
|
|
Copyright (c) 2014-2015 `Xiong Neng <http://yidao620c.github.io/>`_ 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.
|
2015-01-06 16:46:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. _readthedocs: https://readthedocs.org/
|
|
|
|
|
|
.. _sphinx-rtd-theme: https://github.com/snide/sphinx_rtd_theme
|
|
|
|
|
|
.. _reStructuredText: http://docutils.sourceforge.net/docs/user/rst/quickref.html
|
|
|
|
|
|
.. _python3-cookbook: http://python3-cookbook.readthedocs.org/zh_CN/latest/
|