用 Python 生成无数独特光剑

原文: PyCoder's Weekly - Issue #419


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

In last week’s issue we had the dates mixed up, here are the correct ones: 3.9.0 final is expected to be released on October 5, 2020. On May 18, 2020 3.9.0 beta 1 is going to be released, marking the start of the feature freeze phase.

Have you ever looked at a test you wrote six months or a year ago and thought, “I know what this test does but why did I test this?” Maybe you should document your tests.


那就直接用 doctest?


This year’s Python Language Summit was held over videoconference. The PSF is posting summaries of the presentations as they become available.


在老爹离开的日子里, Python 果断努力变成 C#


In previous tutorials in this series, you’ve seen several different ways to compare string values with direct character-by-character comparison. In this tutorial, you’ll learn how to perform more complex string pattern matching using regular expressions, or regexes, in Python.

May the Fourth be with you! And also some Python! Adam McKerlie shows us how he used Pillow and Tweepy to make a Twitter bot that tweets a unique lightsaber every day.


神奇了, Jadi 光剑自动生成器, 为每一个小伙伴生成一柄唯一的.



For many people, the Jupyter Notebook has become the de facto tool for exploratory data analysis. But is it really the bee’s knees?



Jupyter 有很多山寨小伙伴, 每一个都作的不错.特别是 VSCode.


Łukasz is the release manager for CPython and the creator of the Black code formatter.



Wait… you can do that?

A real brainteaser if you don’t know about chained comparisons.





Articles, Tutorials and Talks

Michael Sugimura and Nicole Carlson were tasked with developing Tonks, a multi-tasking deep learning library, for ShopRunner. In this collaborative article, they talk about the decisions they made while engineering Tonks. They also discuss how they overcame some initial friction and learned to lean into each other’s strengths.

Have you ever wondered about working with dates and times in Python? In this tutorial, you’ll learn all about the built-in Python datetime library. You’ll also learn about how to manage time zones and daylight saving time, and how to do accurate arithmetic on dates and times.



datetime 虽然够用, 但是, 一点儿也不好用...

所以, 有很多第三方模块...


In this step-by-step course, you’ll learn about the print() function in Python and discover some of its lesser-known features. Avoid common mistakes, take your “hello world” to the next level, and know when to use a better alternative.



print() 绝对是 Python 中最受欢迎的一个模块了...


“How do users provide data to your website so you can interact with them? We can answer that question by exploring Django’s form system, and the tools that Django provides to simplify your site as you engage with your users.”

Command-line interfaces—a developer’s best friend. (Or foe?) Explore the history of the CLI and some Python packages for creating CLIs in this extensive four-part guide.


Hitchhiker’s 也是一大系列品牌了 ;

Click 的一则硬广, 不过, 用后, 俺回到了 inv )

Take a guided tour through the functools module. Not to be confused with “funk tools,” like the flashlight.


叕叕叕叕一则对 functools 的宣传, 简单说,没有被广泛使用的内建模块一定有其它原因的...


Who doesn’t need more dashboards in their life? Check out this fun little Raspberry Pi project using the Waveshare 2.7inch e-Paper HAT e-ink display.

Webpack is a popular JavaScript module bundler. Django is a popular web framework. Can the two play nicely together?


等等,不是插件, 那这事儿不敢上吧


Caching is a common technique for improving web app performance, and Django has a robust-built-in caching system.

An interview with one of the creators of PyBoy, Mads Ynddal.


为了训练 AI 人类真的是连自己的童年都可以出卖的...


TLDR is a daily, curated newsletter with links and TLDRs of the most interesting stories in tech, science, and programming.


TL&DR 这梗儿真的用上了...



Interesting Projects, Tools and Libraries, Projects & Code








Slgan 很屌...





敠一个以 FFmpeg 为核心的全桟式视频处理流水线


📆🐍 活动/大会

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



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

101camp8py 已经开始报名(能开发票 ;-)


    报名截止 2020.5.24
    正式开课 2020.5.31
    课程结束 2020.7.12

详情 => 蟒营™ Python 入门班第8期


NN 4005

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



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


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

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

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



关于 ~ DebugUself with DAMA ;-)
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:

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


**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 扫描预约入群, 学员每满 42 人即启动新一期训练营 ;-)
  • 101camp22.7
  • + 任何问题, 随时邮件提问可也: