用 Python 生成无数独特光剑

原文: PyCoder's Weekly - Issue #419

PyCoder

  • 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 光剑自动生成器, 为每一个小伙伴生成一柄唯一的.

Lightsabers

)

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

(是也乎:

Alternative

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

)

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

讨论

Discussions

Wait… you can do that?

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

(是也乎:

7年前的老梗一直在嗯嗯

)

文章,教程和嗯哼

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

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

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

(是也乎:

这项目名儿起的太屌...

rich

问题是在终端中折腾这么华丽为毛哪...

)

(是也乎:

Background

Slgan 很屌...

)

(是也乎:

曾经推荐过的

vidgear

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

)

📆🐍 活动/大会

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

NIL

DAMA

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

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

报名

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

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

PS:


NN 4005

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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments



精品小班 蟒营™Python入门班 第9期 报名安排

  • 开始报名: 2020.5.31
  • 报名截止: 2020.6.21
  • 正式开课: 2020.6.28
  • 课程结束: 2020.9.06
101camp9py

蟒营™式 原创课程

伴你重享学习乐趣

py.101.camp

Reactivate Joy by Self-teching with You


任何问题可先进入知识星球(免费)咨询:
FAQ

关注公众号, 持续获得相关各种咨询:
mainium


追问

任何问题, 随时邮件提问可也:
askdama@googlegroups.com