Issue 452

Python 3.10a3 发布 原文: PyCoder’s Weekly - Issue #452 201223 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 201223 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 软件基金会 2020 募捐 PYTHON.ORG “COVID-19 has changed all aspects of our lives and is reshaping our future. Nonprofits like the PSF are having to rebuild. With PyCon 2020 and 2021 happening virtually, the PSF is faced with potentially losing $1.2 million USD of expected revenue for those two years. This fundraiser is critically important and the money raised will help the PSF support the tools and initiatives that Pythonistas use everyday.” (是也乎: Pythonistas 年度咨文, 值得动员日本分部漫画化. 将今年损失的 120万$ 找回来. ) 建立自己的国际象棋引擎 ANDREW HEALEY Writing your own chess engine is a great way to explore computational complexity and combinatorial aspects of programming. Not to mention it’s pretty fun! Follow along with this reflection on how one coder created his own Chess engine from scratch. (是也乎: 反正, 没人折腾 go 的. ) 用 Python pickle 模块序列化对象 REAL PYTHON course Learn how you can use the Python pickle module to convert your objects into a stream of bytes that can be saved to a disk or sent over a network. You’ll also learn the security implications of using this process on objects from an untrusted source. (是也乎: 等等, 官方已经不推荐用 pickle 了哪.. ) Python 真的是瓶颈吗? ANNA ANISIENIA Python is slow. From one perspective, that is. But what are the true bottlenecks in the data engineering/data processing space, and how does Python compare to other technologies when those factors are considered? (是也乎: 工具的瓶颈并不是工程的, 人思想的瓶颈才一直是. ) 用 PyQt 的 QThread 防止 GUI 冻结 REAL PYTHON In this step-by-step tutorial, you’ll learn how to prevent freezing GUIs by offloading long-running tasks to worker QThreads in PyQt. (是也乎: 其实, 就是 Qt 不得不接管系统的各种职责在完成自我控制. ) Python 3.10a3 发布 PYTHON.ORG See what changes Python 3.10 will bring 新指导委员会选出ed TWITTER.COM/PYBLOGSAL 探讨/吐糟 Discussions NONE ...

2020-12-23 · 4 min · 1768 words · ZoomQuiet

pythonista-weekly : Pyw 479

欢迎阅读《pythonista周刊》第479期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-479 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 文章、教程与话题 我如何意外地建立了一个Podcast API业务 在这篇文章中,Wenbin Fang 分享了他打造听书笔记API业务的历程,以及背后的技术,希望您能学到一两样东西,在未来打造自己的API业务。 用Python编写Discord机器人代码–在云端免费托管 学习如何使用 Python 编写 Discord 机器人的代码,并使用 Repl.it 在云端免费托管它。在此过程中,您将学会使用 Repl.it 的内置数据库,并创建一个使用 webhooks 连接 GitHub 的 Discord 机器人。 一个简单的python递归可视化工具 最复杂的概念之一必须是递归;为了很好地理解它,有某种递归可视化总是有帮助的。在这篇文章中,我们为 Python 中的递归函数构建了一个超级简单而有效的可视化工具。 Middleware Do You Go? 了解什么是中间件,它在 Django 项目中的用途,以及如何编写自己的中间件。 用Python调度所有类型的重复性工作 让我们来看一下 Python 中所有用于运行 cron 作业、延迟任务、循环任务或任何其他计划作业的库。 在Django中创建自定义Postgres数据类型 无论您决定如何定义您的数据类型,Django 都有允许您将自定义列数据映射到模型属性的功能。您可以通过扩展 Django 字段类来实现这一点。在这个演练中,我们将看到如何在 Postgres 中创建自定义类型,然后在 Django 中使用它们来确保整个应用程序中数据类型的一致性。 在Python中扁平化列表的5种不同方法 在这篇文章中,我们将看到我们如何用5种不同的方法来扁平化一个列表。每种方法都有优点和缺点,以及不同的性能。在本教程结束时,您将能够确定最适合您的问题的解决方案。 Python幕后#6:Python对象系统是如何工作的 性能的CI。繁杂环境下的可靠基准测试 Python中一个更快的分区函数 在Python中实现Rust的dbg! Python结构模式匹配形态再次出现 我写JSON-REST API的过程 ...

2020-12-17 · 3 min · 1458 words · ZoomQuiet

Issue 451

通过练习学 Python 的生成器/协程 原文: PyCoder’s Weekly - Issue #451 201216 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 201216 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 位运算符 REAL PYTHON In this tutorial, you’ll learn how to use Python’s bitwise operators to manipulate individual bits of data at the most granular level. With the help of hands-on examples, you’ll see how you can apply bitmasks and overload bitwise operators to control binary data in your code. (是也乎: 回到汇编 ;-) ) 用 mypy 进行详尽检查 HAKI BENITA What if mypy could warn you about possible problems at “compile time”? In this article, you’ll learn a little trick to get mypy to fail when a value in an enumeration type is left unhandled. 用 Python 安排各种定期作业 TOWARDSDATASCIENCE.COM • Shared by Martin Heinz Every software developer, data scientist, and sysadmin must, at some point, schedule jobs to run. In this article, you’ll learn how to do this with Python. You’ll encounter a number of methods for scheduling jobs, from using the standard library to leveraging third-party packages. (是也乎: 嚓, 这口气大了, 也的确需要 ) Python 的对象物件系统如何运作 VICTOR The Python object system is one of the most important parts of the Python language. Mastering it is essential to mastering the Python language. Learn how the object system works by examining the CPython source code in this detailed tutorial. (是也乎: 灵魂追问了, 从代码上看, 老爹也一直在纠结ing…. ) 什么是数据工程/是否适合您? REAL PYTHON In this article, you’ll get an overview of the discipline of data engineering. You’ll learn what is and isn’t part of a data engineer’s job, who data engineers work with, and why data engineers play a crucial role in many industries. (是也乎: 扫盲贴 ;-) ) Python 软件基金会 2020 募捐者 PYTHON.ORG Help the PSF recover funds lost due to COVID-19. (是也乎: 等等, 哪儿? 俺也得捐. ) PyTorch 1.7.1 发布: 更新 Python 3.9 二进制文件 GITHUB.COM/PYTORCH Python 3.9.1 最终版本 PYTHON.ORG Qt 6.0 发布 QT.IO • Shared by Bartosz Zaczyński (是也乎: 嚓了, 真.活久见 ) 探讨/吐糟 Discussions ...

2020-12-16 · 4 min · 1849 words · ZoomQuiet

pythonista-weekly : Pyw 478

欢迎阅读《pythonista周刊》第478期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-478 翻译:Dustyposa 来自赞助商(PS:原文的赞助商): Seamlessly correlate logs and traces at the level of individual requests, allowing you to quickly troubleshoot your Python application. Datadog’s Continuous Profiler allows you to find the most resource-consuming parts in your production code all the time, at any scale. Try it today with a free trial. ...

2020-12-10 · 5 min · 2074 words · ZoomQuiet