用 Python 生成无数独特光剑
原文: PyCoder's Weekly - Issue #419
- 200506 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
- 200506 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
- Python 3.9 发布规划
- PYTHON.ORG
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.
- 为什么要记录测试
- HYNEK SCHLAWACK
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?
)
- 2020 Python 语言峰会
- PYTHON SOFTWARE FOUNDATION
This year’s Python Language Summit was held over videoconference. The PSF is posting summaries of the presentations as they become available.
(是也乎:
在老爹离开的日子里, Python 果断努力变成 C#
)
- Regular Expressions: Python中的正则表达式
- REAL PYTHON
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.
- 用 Python 生成 10,000 多个独特的 8位 Lightsabers
- ADAM MCKERLIE
- • Shared by Adam McKerlie
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 光剑自动生成器, 为每一个小伙伴生成一柄唯一的.
)
- 探索用于 Python 开发的 Jupyter Notebook 替代方案
- CHRIS MOFFITT
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.
)
-
- PYTHON.ORG
-
- DJANGO SOFTWARE FOUNDATION
-
The Real Python 播客: Łukasz Langa 访谈
- REAL PYTHON podcast
Łukasz is the release manager for CPython and the creator of the Black code formatter.
讨论
Discussions
- 为毛 [1] += {'a': 2} 居然没触发 TypeError ?
- STACK OVERFLOW
Wait… you can do that?
A real brainteaser if you don’t know about chained comparisons.
(是也乎:
7年前的老梗一直在嗯嗯
)
文章,教程和嗯哼
Articles, Tutorials and Talks
- Tonks: 构建一个(多任务)模型来统治所有
- NICOLE CARLSON
- AND MICHAEL SUGIMURA
- • Shared by Michael Sugimura
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.
- 用Python datetime 处理日期和时间
- REAL PYTHON
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 虽然够用, 但是, 一点儿也不好用...
所以, 有很多第三方模块...
)
- The Python print() 函式: 超越基础
- REAL PYTHON
- video
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 中最受欢迎的一个模块了...
)
- 理解 Django: 用户与表单的互动
- MATT LAYMAN
- • Shared by Matt Layman
“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.”
- Python CLI 搭车客指南
- VINAYAK MEHTA
- • Shared by Vinayak Mehta
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 )
- Python 的 functools 模块简介
- FLORIAN DAHLITZ
- • Shared by Florian Dahlitz
Take a guided tour through the functools module. Not to be confused with “funk tools,” like the flashlight.
(是也乎:
叕叕叕叕一则对 functools 的宣传, 简单说,没有被广泛使用的内建模块一定有其它原因的...
)
- 黑客攻击电子墨水仪表板
- ANDREW HEALEY
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.
- Django 中用 Webpack: 无需插件
- PASCAL WIDDERSHOVEN
- • Shared by Pascal Widdershoven
Webpack is a popular JavaScript module bundler. Django is a popular web framework. Can the two play nicely together?
(是也乎:
等等,不是插件, 那这事儿不敢上吧
)
- 在 Django 中缓存
- J-O ERIKSSON
- • Shared by J-O Eriksson
Caching is a common technique for improving web app performance, and Django has a robust-built-in caching system.
- PyBoy: 用 Python 编写的 GameBoy 模拟器
- MARTINA CANTARO
An interview with one of the creators of PyBoy, Mads Ynddal.
(是也乎:
为了训练 AI 人类真的是连自己的童年都可以出卖的...
)
- TLDR Newsletter: 针对技术人员的字节大小新闻
- TLDRNEWSLETTER.COM
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
-
interrogate: 检查您的代码库中是否缺少 文档字串
- GITHUB.COM/ECONCHICK
-
- GITHUB.COM/WILLMCGUGAN
(是也乎:
这项目名儿起的太屌...
问题是在终端中折腾这么华丽为毛哪...
)
- Background-Matting: 世界就素您的绿屏
- GITHUB.COM/SENGUPTAUMD
(是也乎:
Slgan 很屌...
)
-
pyslam: Python中的单眼视觉Odometry(VO)管道
- GITHUB.COM/LUIGIFREDA
-
- GITHUB.COM/ABHITRONIX
(是也乎:
曾经推荐过的
敠一个以 FFmpeg 为核心的全桟式视频处理流水线
)
- alembic_utils: 用于迁移过程和视图的 Sqlalchemy / Alembic 扩展
- GITHUB.COM/OLIRICE
- • Shared by Oliver Rice
📆🐍 活动/大会
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