蠎周刊(PyCoder)581

什么是 Python 之禅? 原文: PyCoder’s Weekly - Issue #581 230614 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230614 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, 什么是 Python 之禅? REAL PYTHON In this tutorial, you’ll be exploring the Zen of Python, a collection of nineteen guiding principles for writing idiomatic Python. You’ll find out how they originated and whether you should follow them. Along the way, you’ll uncover several inside jokes associated with this humorous poem. JupyterLab 4.0 来了 JASON WEILL The Jupyter contributor community have announced JupyterLab 4.0. This blog post shows you some of the new features, including: performance improvements, editor upgrades, better search, and more. Python 和塞尔达传说 GAZ J The Game Boy Color version of Legend of Zelda: Oracle of Ages contains a grid-based puzzle. Gaz writes about creating a brute force program to solve the challenge using Python. Django 4.2.2 Bugfix 发布 DJANGO SOFTWARE FOUNDATION Python 3.11.4, 3.10.12, 3.9.17, 3.8.17, 3.7.17, 和 3.12.0 Beta 2 发布 CPYTHON DEV BLOG (是也乎: WoW … 这样一来, 气势不就有了? ) PyCascades 2023 视频已上线 YOUTUBE.COM PyCon US 2023 视频已上线 YOUTUBE.COM Obfuscated Python 竞赛提交开放 PYOBFUSC.COM (是也乎: 对 IOCCC 的戏仿大赛; IOPCC ~ International Obfuscated Python Code Competition 国际混乱Python代码大赛, 就比谁能写出可以运行, 但是, 人无法看明白的代码; ) ...

2023-06-14 · 4 min · 1903 words · ZoomQuiet

蠎周刊(PyCoder)580

标准库有毛用? 原文: PyCoder’s Weekly - Issue #580 230607 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230607 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, 用 Python 构建你自己的人脸识别工具 REAL PYTHON In this tutorial, you’ll build your own face recognition command-line tool with Python. You’ll learn how to use face detection to identify faces in an image and label them using face recognition. With this knowledge, you can create your own face recognition tool from start to finish! (是也乎: ) 通过双因素身份验证保护 PyPI 帐户 PYPI.ORG PyPI has already added two-factor authentication for high volume projects, but now they’ve announced that all package maintainers must upgrade to 2FA by the end of 2023. This post talks about why the decision was made and what your 2FA options are. 用 Kivy 进行 GUI 开发 FRANCIS ALI Kivy is an open source Python library for developing desktop and mobile GUI development. It is supported on Windows, Linux, macOS, Android, and iOS. This article introduces you to Kivy and teaches you how to build your first GUI with it. (是也乎: 不时冒头的古老框架, 不过, 现在大家好象注意力都在 WASM.py 了 ) Python 软件基金会董事会提名 PYTHON SOFTWARE FOUNDATION 探讨/吐糟 Discussions ...

2023-06-07 · 5 min · 2013 words · ZoomQuiet

蠎周刊(PyCoder)579

PyPI 被传唤 原文: PyCoder’s Weekly - Issue #579 230531 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230531 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, Python 的 .call() 方法:创建可调用实例 REAL PYTHON In this tutorial, you’ll learn what a callable is in Python and how to create callable instances using the .call() special method in your custom classes. You’ll also code several examples of practical use cases for callable instances in Python. (是也乎: ) 使用自定义属性对 Django 查询集进行排序 REDOWAN DELOWAR “Typically, Django allows sorting a queryset by any attribute on the model or related to it in either ascending or descending order. However, what if you need to sort the queryset following a custom sequence of attribute values?” Python Decorators and How to Use Them Effectively Python 装饰器以及如何有效地使用它们 TONIE VICTOR This article covers the importance and use of decorators in your code. It introduces you to both function and class decorators and helps you write your own. PyPI 被传唤 PYPI.ORG In March and April 2023, PyPI received three subpoenas for user data from the US Department of Justice. This blog post covers what was requested and how the PyPI is working to clarify what they retain and can make available in the future. See the associated Hacker News discussion. (是也乎: 美国司法部… 没被司法部关怀过的语言,不是世界级语言? ) ...

2023-05-31 · 4 min · 1844 words · ZoomQuiet

蠎周刊(PyCoder)578

为什么工程师需要无聊 原文: PyCoder’s Weekly - Issue #578 230524 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230524 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, ChatGPT: 您的个人 Python 编码导师 REAL PYTHON Large language models have gained popularity since OpenAI released ChatGPT. In this tutorial, you’ll learn how to use ChatGPT as your Python coding mentor. You’ll study a variety of use cases, learn how to interpret results, and learn to beware of incorrect and irrelevant responses. (是也乎: 不过, 随着使用费用的上升, 大家到最后发现, 还是找个退休程序猿来用更加划算? ) Pydantic 和 FastAPI 的未来 KENNEDY, COLVIN, RAMIREZ PODCAST This interview with Samuel Colvin from Pydantic and Sebastián Ramírez from FastAPI took place at PyCon 2023 and covers the changes to Pydantic as part of its 2.0 release along with the impacts that has on libraries built on top of it. (是也乎: Pydantic 作为一个通用数据类型校验器,真的很给力, 而 FastAPI 直接内置了这一模块, 可以说决心很大了… ) 使用属性向属性添加动态行为 RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão This article teaches you how to use properties to add dynamic behavior to your attributes. It covers the most common use cases for properties, how to use them, and shows examples of real-world usages of this feature. PyPI 暂停新注册 PYTHON.ORG Due to a large volume of traffic from malicious users, PyPI temporarily suspended new account and project registrations on May 20th. The suspension was lifted 30 hours later on May 21st. FastAPI 0.95.2 安全修复发布 TIANGOLO.COM 探讨/吐糟 Discussions ...

2023-05-24 · 4 min · 1972 words · ZoomQuiet