嫑再将你 Python 模块命名为 utils 原文: PyCoder’s Weekly - Issue #416 200415 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200415 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 Python 和 OpenCV 开源工具实现虚拟背景 BENJAMIN ELDER With so much of the world stuck at home thanks to the COVID-19 pandemic, more and more workplaces are using video conferencing solutions—such as Zoom—to bring work to your living room. Or kitchen. Or bedroom. Or bathroom. OK… hopefully not that last one! Why not spice up your video conferencing with some awesome, homemade virtual backgrounds built with Python and OpenCV? (是也乎: 用一个简单例子来描述, 开源世界机械视觉最常见的应用… ) 继承与组成: Python OOP指南 REAL PYTHON course Learn about inheritance and composition in Python. You’ll improve your object-oriented programming (OOP) skills by understanding how to use inheritance and composition and how to leverage them in their design. (是也乎: 很多 OOP 概念都是在特殊场景中才感觉舒服的… 但是,我们学习使用却反过来, 先尝试理解各种模型, 再去撞场景… ) 嫑再将你 Python 模块命名为 utils SEBASTIAN BUCZYŃSKI opinion “Do not use utils as a name for your Python module neither put it into a class name. Try to be more specific about the role of code – e.g. create a place for validators, services or factories. If the role criterion doesn’t help and you really dealing with utils, try grouping code by its theme.” (是也乎: utils 已经变成垃圾箱了… 最好给出真正有意义的模块名 ) 从分块到并行: 借助 Dask 加速 Pandas ITAMAR TURNER-TRAURING In a recent article, Itamar Turner-Trauring discussed how to read large datasets with Pandas using a chunking technique to reduce memory overhead. Chunking has another advantage: it enables parallelism, which can dramatically speed up processing time. Learn why and how to enable parallelism for your Pandas processing code using the Dask library. 数据科学: 现实不符合预期 DAN FRIEDMAN opinion “Seven common ways a data science role may not meet your expectations through tens of data scientist interviews and anecdotes from popular media.” Also see the related discussion on Hacker News 如何在 pytest 中为 Django 模型提供测试装置 REAL PYTHON In this step-by-step tutorial, you’ll learn how to use fixtures to simplify your testing in pytest. If you use Django, pytest fixtures can help you write tests that are painless to update and maintain even as you make changes to your models. PyPy 7.3.1 发布 PYPY BLOG 讨论 Discussions
...