python3-cookbook
python3-cookbook copied to clipboard
《Python Cookbook》 3rd Edition Translation
是用rst编辑器新建文本内容,然后push到github吗?
你好,首先感谢你的翻译! https://python3-cookbook.readthedocs.io/zh_CN/latest/c03/p13_determine_last_friday_date.html 3.13节的标题是“计算最后一个周五的日期”,但是代码中却是‘get_previous_byday’,所以标题是不是应该是“计算上一个周五的日期”呢?
源码: def search(lines, pattern, history=5): previous_lines = deque(maxlen=history) for li in lines: if pattern in li: yield li, previous_lines previous_lines.append(li)
讨论部分的内容70%都没有翻译,也没有在网页中显示。
Sphinx有一套本地化的[流程](http://blog.xulihang.me/localizing-sphinx-projects/),我看了下这个项目好像没有用到,而是直接修改的rst文件? 官方的话是使用Gettext PO文件进行翻译的,可以自动提取要翻译的文字,之后用计算机辅助翻译软件翻译会比较容易。
倒数第二段,最后一句话。 原文: > It should be noted that the actual implementation of nlargest() and nsmallest() is adaptive in how it operates and will carry out some of these optimizations on...
42 这种是想方式允许parent静默终止。例如: