Python 正式世界第二

原文: PyCoder's Weekly - Issue #446


  • 201111 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 201111 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

Take a look at how statistical knowledge plays an important role in answering business questions like “What drives the winningness of candy?” Along the way you’ll learn how to do Key-Driver analysis in Python on a problem that can’t be easily solved with a call to a machine learning library.

In this step-by-step course, you’ll learn how the Python defaultdict type works and how to use it for handling missing keys when you’re working with dictionaries. You’ll also learn how to use a defaultdict to solve problems like grouping or counting the items in a sequence or collection.



Defaultdict 每种新类型, 都需要长久的扫盲.


Many machine learning algorithmns can be summarized as transforming data to n-dimensional vectors and computing similarity between points by means of some distance metric. This article explores four of these metrics—the Euclidean, Manhattan, Minkowski, and Hamming distances—and how to compute them with Python.

Caching is an essential optimization technique. In this tutorial, you’ll learn how to use Python’s @lru_cache decorator to cache the results of your functions using the LRU cache strategy. This is a powerful technique you can use to leverage the power of caching in your implementations.



Least Recently Used (LRU) strategy






这可能意味着 Python 正式进入衰退期?



Articles, Tutorials and Talks

In this tutorial, you’ll learn about sentiment analysis and how it works in Python. You’ll then build your own sentiment analysis classifier with spaCy that can predict whether a movie review is positive or negative.




Time for a Python-infused math lesson! The Law of Large Numbers and the Central Limit Theorem are fundamental concepts in statistics and machine learning. Learn how these theorems work with illustrative examples in Python.

Author Seema Saharan argues that now is better than ever for women to get started in the tech industry. Learn how she got started with coding, why she enjoys it, and why women should consider learning to code. The article is full of resources to help aspiring women coders get started with Python.

Are you ready to move beyond flat files for your data in Python? Maybe you’re not sure where to start with databases and SQL. This week on the show, David Amos returns with another batch of PyCoder’s Weekly articles and projects. We cover a Real Python article about managing data with SQLite and SQLAlchemy.




For small projects, many of the popular content manage systems, such as Wordpress or Medium, are overkill or potentially present significant downsides for authors. In this article, you’ll learn how to build a light-weight CMS in just a few lines of code!


..我的朋友 linus ...

Flask-FlatPages 作者的语气很民国.


Cross-Site Request Forgery (CSRF) is an attack against a web application in which the attacker attempts to trick an authenticated user into performing a malicious action. Learn how to protect against CSRF attacks in Flask projects.

Python is a great language for test automation. Here’s a big list of resources to help you get started!

Python is playing an increasingle large role in research science. This article discusses how one group of researches used Python to create a high-level interface to a popular Fortran simulation library for atmospheric simulation. Although academic, the article is approachable and provides insight into the methodology and frameworks used to make C and Fortran libraries more accessible.

It’s a question for the ages: “what is the airspeed velocity of an unladen swallow?” Get your Monty Python kicks and do a little math. Can you come up with a Python script that answers the question?


这种探索非常 XKCD. )


Interesting Projects, Tools and Libraries, Projects & Code

You like pytorch? You like micrograd? You love tinygrad! ❤️ - geohot/tinygrad

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

关于 Python 的高性能和科学计算第9次讲习班



❤️ Happy Pythonic ;-(大妈私人无责任播报)



好文笔,感叹号年度配额: 2/3


(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4194




关于 ~ DebugUself with DAMA ;-)

关注公众号, 持续获得相关各种嗯哼:


任何问题, 随时邮件提问可也: