蠎周刊(PyCoder)599

遇见guido老爹时 原文: PyCoder’s Weekly - Issue #599 231018 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 231018 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, 如何在 Python 中按字母顺序对 Unicode 字符串进行排序 REAL PYTHON In this tutorial, you’ll learn how to correctly sort Unicode strings in Python while avoiding common pitfalls. You’ll explore powerful third-party libraries implementing the complete Unicode Collation Algorithm (UCA), as well as standard library modules and a few handmade solutions. (是也乎: ) 用 functools 模块可以做 6 件很酷的事情 BOB BELDERBOS The functools module in the standard library has all sorts of useful bits and pieces. This article talks about six of them: caching, writing fewer dunder methods, freeze functions, generic functions, better decorators, and reduce(). (是也乎: 不止, 只是 functools 中的参数顺序都有点儿反直觉要习惯先… ) 用 Stripe、Vue.js 和 Flask 接受付款 MICHAEL HERMAN If you’re building a site to make money, at some point you have to collect money. This tutorial shows you how to build a Flask application that integrates with Stripe for payment processing through the Vue.js framework. (是也乎: Stripe 已经变成海外的支付宝, 当然无法接入银联的… ) Python 荣获 NEC C&C 基金会奖 NEC.COM 探讨/吐糟 Discussions ...

2023-10-18 · 4 min · 1844 words · ZoomQuiet

蠎周刊(PyCoder)598

给 个体企业家/Solopreneur 的建议 原文: PyCoder’s Weekly - Issue #598 231011 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 231011 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, Python的 tuple 数据类型:通过示例进行深入探讨 REAL PYTHON In Python, a tuple is a built-in data type that allows you to create immutable sequences of values. The values or items in a tuple can be of any type. This makes tuples pretty useful in those situations where you need to store heterogeneous data, like that in a database record, for example. (是也乎: ) 学到的关于用 Python 构建 CLI 工具的知识 SIMON WILLISON In this blog post, Simon covers many of the things he has learned over the years when writing command-line tools in Python. He talks about the different kinds of command line arguments and tools that will help you process them. (是也乎: …一致性就是一切 是的, 嘦发现好的形式, 就一定要坚持应用在所有场景中… …Click 使得构建遵循这些约定的 CLI 工具变得异常简单和高效 好框架已经为你准备好了一切. ) ...

2023-10-11 · 4 min · 1927 words · ZoomQuiet

蠎周刊(PyCoder)597

3.12: 值得尝试的酷炫新功能 原文: PyCoder’s Weekly - Issue #597 231004 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 231004 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, Python 3.12: 值得尝试的酷炫新功能 REAL PYTHON In this tutorial, you’ll learn about the new features in Python 3.12. You’ll explore how the new release extends the better error messages and faster code execution found in the previous version, and you’ll try out the improvements to f-strings and type variable syntax. (是也乎: ) Python 3.12: 静态类型改进 REAL PYTHON In this tutorial, you’ll see the new static typing features in Python 3.12. You’ll learn about the new syntax for type variables, making generics simpler to define. You’ll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments. (是也乎: ) Python 3.12: Subinterpreters/子解释器 REAL PYTHON In this tutorial, you’ll see one of the new features of Python 3.12 and a proposed change to Python 3.13, addressing how subinterpreters work in the CPython program. The changes are described in PEP 684 and PEP 554. (是也乎: ) Python 3.12.0 发布 PYTHON.ORG (是也乎: Wow 3.12 时代正式到来 ) 2022 年 Python 开发者调查结果 JETBRAINS.COM 探讨/吐糟 Discussions ...

2023-10-04 · 4 min · 1778 words · ZoomQuiet

蠎周刊(PyCoder)596

绕过 GIL 进行并行处理 原文: PyCoder’s Weekly - Issue #596 230927 Zoom.Quiet(大妈) 用时 13 分钟 完成格式转抄. 230927 Zoom.Quiet(大妈) 用时 37 分钟 完成快译, 设计和指导:Python 中的面向对象编程 REAL PYTHON COURSE In this video course, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable. (是也乎: ) 用 Radon 了解 Python 中的代码度量 MIKE DRISCOLL Radon is a code metrics tool. This article introduces you to it and teaches you how you can improve your code based on its measurements. (是也乎: 氡 ~ 真的是个好名字 ) 当多核不可行时加快代码速度 ITAMAR TURNER-TRAURING Parallelism isn’t the only answer: often you can optimize low-level code to get significant performance improvements. Django 5.0 Alpha 1 发布 DJANGO SOFTWARE FOUNDATION Python 3.12.0 候选版本 3 可用 CPYTHON DEV BLOG 探讨/吐糟 Discussions NULL ...

2023-09-27 · 4 min · 1872 words · ZoomQuiet