Issue 377

原文: PyCoder’s Weekly - Issue #377 用 Collaborative Filtering 构建推荐引擎 REAL PYTHON In this tutorial, you’ll learn about collaborative filtering, which is one of the most common approaches for building recommender systems. You’ll cover the various types of algorithms that fall under this category and see how to implement them in Python. (是也乎: 有公式原理分析的教程… ) Python GIL GIL是否已被杀? ANTHONY SHAW Thoughts on upcoming features in Python 3.8 and 3.9, like sub-interpreters, that will make writing high-performance concurrent programs that are CPU-bound more convenient. (是也乎: GIL 将被谋杀嘛? ) The Python Celery Cookbook: 小工具,巨大的可能性 VADYM ZAKOVINKO “Everyone in the Python community has heard about Celery at least once, and maybe even already worked with it. Basically, it’s a handy tool that helps run postponed or dedicated code in a separate process or even on a separate computer or server. This saves time and effort on many levels.” (是也乎: 又见 芹菜… ) 在 Python 3 中将列表转换为集合的速度更快: set() or {*} MICHAEL BASSILI Perhaps surprisingly, there is a performance difference between the two. Read Michael’s article to find out why using a {*} set literal is faster. 用 Keras 和深度学习进行视频分类 ADRIAN ROSEBROCK In this tutorial, you will learn how to perform video classification using Keras, Python, and Deep Learning. (是也乎: pyimagesearch.com 是位非常厉害的光头程序猿, 一己之立写书/设计课程,完成原创模块, 四处演讲/咨询…. 专注 CV ) 讨论 Discussions ...

2019-07-17 · 4 min · 1685 words · ZoomQuiet

Issue 376

原文: PyCoder’s Weekly - Issue #376 CPython 3.7.4 现已释放 PYTHONINSIDER.BLOGSPOT.COM Lots of bug fixes and small improvements. Full changelog here. Python 3.8 先睹为快 JERRY PUSSINEN Playing around with new features in Python 3.8 such as assignment expressions (“walrus operator”), positional-only arguments, and runtime audit hooks. 用 Python 读写文件 REAL PYTHON video Learn about reading and writing files in Python from the ground up. You’ll cover everything from what a file is made up of to which libraries can help you along that way. You’ll also take a look at some basic scenarios of file usage as well as some advanced techniques. 用 Python 将数据加载到 PostgreSQL 的最快方法 HAKI BENITA This article explores ways to import messy data from remote source into PostgreSQL using Python and the Psycopg2 module. The data is big, fetched from a remote source, and needs to be cleaned and transformed. (是也乎: 简单说无论什么渠道, Pg 都吃的了, 问题压力在 Python 这边儿… ) 用 Docker 将 Django 部署到 Heroku MICHAEL HERMAN This post looks at how to deploy a Django app to Heroku with Docker via the Heroku Container Runtime. (是也乎: 各家 PaaS 都用上了自己的容器平台… ) 讨论 Discussions ...

2019-07-10 · 4 min · 1638 words · ZoomQuiet

Issue 375

原文: PyCoder’s Weekly - Issue #375 更频繁的 Python 版本? JAKE EDGE “Łukasz Langa, who is the release manager for the upcoming 3.8 release, as well as the manager for the date-to-be-determined release of 3.9, has proposed PEP 596 (“Python 3.9 Release Schedule (doubling the release cadence)”). As its name would imply, the PEP proposes halving the current release cycle to nine months, which would make the 3.9 release happen in June 2020.” (是也乎: 事实证明, 开源项目版本攀爬速度,和基金会储备金数额呈正比关系 ) Python 标准库模块之间的依赖关系 DOUG HELLMANN What would a minimal Python standard library (only enough code to successfully download and install other packages) look like? Nice research and writeup. (是也乎: 这也算红学变种… 其实, miniPy 之类项目早已完成了这种鉴定 ) Python 中的函数编程 REAL PYTHON video Learn how to approach functional programming in Python. You’ll cover what functional programming is, how you can use immutable data structures to represent your data, as well as how to use filter(), map(), and reduce(). (是也乎: 真蟒的 FP.py 嗯哼… ) 如何构建 Raspberry Pi + Python 机器人 AUGUST R. GARCIA “Building robots seems expensive and complicated. However, it turns out that it’s relatively straightforward. Do you have an IQ higher than 90 and assorted random garbage lying around your house? Then you too can make a robot in a reasonably small amount of time.” (是也乎: 叕一则和 RPi 来相关的嗯哼 ) 如何通过 Python 用 Redis REAL PYTHON In this step-by-step tutorial, you’ll cover how to use both Redis and its Python client library. You’ll learn a bite-sized slice of Redis itself and master the redis-py client library. (是也乎: ) 检测用 Python,Go 和 Rust 编写的程序 NICOLAS HAHN “This is a subjective, primarily developer-ergonomics-based comparison of the three languages from the perspective of a Python developer” (是也乎: WoW 可见, Python 性能并没差太多…在数据量足够大时… 另外, 还有一种可能没测试: indygreg/PyOxidizer: A modern Python application packaging and distribution tool 用 Rust 将 Python 再编译后… ) SymPy 再次让数学变得有趣 WORDSANDBUTTONS.ONLINE Intro to SymPy, a Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. (是也乎: 目标不是数值计算, 而是 计算机代数系统 (CAS) ) 讨论 Discussions ...

2019-07-03 · 4 min · 1952 words · ZoomQuiet

Issue 374

原文: PyCoder’s Weekly - Issue #374 如何用 Python Lambda 函数 REAL PYTHON In this step-by-step tutorial, you’ll learn about Python lambda functions. You’ll see how they compare with regular functions and how you can use them in accordance with best practices. (是也乎: 简单说, 用在应该用的地方就好 ) 如何在 Python 中轻松嗯哼进度条 CODINGDOSE.INFO • Shared by Franccesco Orozco A survey of Python progress bar libraries like Progress, ProgressBar2, TQDM, Click, and Clint that allow you to add animated progress bars to your command-line apps. (是也乎: 进度条, CLI 中的, 简直就是选择困难症激发重灾区… ) 将 Qt 应用程序从 C++ 移植到 Python 然后发现… ICS.COM “Our experience at ICS with Python and PyQt is that large complex (typically desktop) applications can be developed with Python. Users can’t tell that it was implemented in Python and not C++. Performance is typically not an issue, and experienced Qt C++ developers can quickly make the transition to Python.” (是也乎: 哈..多么痛的领悟… Qt Creator…能不用就不用… ) ...

2019-06-26 · 5 min · 2097 words · ZoomQuiet