给 个体企业家/Solopreneur 的建议

原文: PyCoder's Weekly - Issue #598

pycoder

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

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.

(是也乎:

tuple

)

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 工具变得异常简单和高效

好框架已经为你准备好了一切.

)

There has been plenty of coverage about the changes in Python 3.12, this article tries to show what fell through the cracks. It talks about performance, pathlib improvements, and a few other changes.


探讨/吐糟

Discussions


文章/教程/嗯哼

Articles, Tutorials and Talks

When you create a function to match an interface, it often needs to accept parameters that it doesn’t use. Once you introduce type hints, testing such functions can become a little irksome as Mypy requires all arguments to have the correct types. This article covers a technique to avoid that work.

In this video course, you’ll learn how to move data back and forth between your Python programs and external software by reading and writing files. You’ll practice reading and writing data stored in the CSV file format, one of the most widely supported file formats for transferring tabular data.

(是也乎:

Python Basics

Python Basics 已经是真蟒 的品牌图书+课程了... )

Previously, Luke wrote an article about what was involved in adding Type Hints to parsy. This follow-on article tackles the effort on a project with different challenges: pyastgrep.

Seth is the Security Developer-in-Residence at the Python Software Foundation and this article is part of his on-going effort to document and improve the release process and tools. Associated HN discussion.

(是也乎:

首位基金会驻场安全开发人员的报告...

)

Abstractive summary is an AI task that rephrases and condenses text content into a summary. This article is a deep dive into how to ensure correctness and the math involved in ensuring fluency, coherence, relevance, and consistency.

This tutorial shows you how to do discourse analysis on news using Python through The Guardian’s API. You’ll see how to access content across years and perform topic analysis with sentence embedding.

There are several ways to measure the passing of time in Python, especially when determining the performance of your code. Read on to learn five functions from the time module and how to use them.

(是也乎:

分别基于...

    time.time()
    time.perf_counter()
    time.monotonic()
    time.process_time()
    time.thread_time()

)

This is a third article in a series on design patterns in Python, with this one talking about a variation on singletons, a pattern that uses dynamic function binding, and sentinels.

(是也乎:

还是要对真正流畅的开发姿势抽象, 才能得到实用的模式

)

This article shows you how to use MongoMock and MockS3 to power your integration tests on a FastAPI based project.

(是也乎:

各种 Mock 技巧...

)

This article shows how to use GeoDjango and PostGIS to work with geospatial data in Postgres.


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

反正, Flutter 们并没彻底解决这个问题...

)

(是也乎:

好吧, 这个简单要求其实真的不简单...

)

(是也乎:

Excel 已经嵌入 Python 了, 马上 LLM 也一样...

)


📆🐍 活动/大会

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


历史上这周


DAMA

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

      _~-~∽~_
  \/ /  ◕ ♡  \ (/
    '_   △   _'
    \ '--+--' \

...act by ferris-actor v0.2.4 (built on 23.0303.201916)

PS:

Happy Pythoning!

Copyright © 2023 PyCoder’s Weekly, All rights reserved.

PPS:

不觉中蟒周刊快译已经到了第10+2个年头

开始有小伙伴加入承担 pythonisa 周刊的翻译, 从来没提醒过, 可就这么默默坚持下来了...

问为什么:

[皱眉]每周新闻资讯 怎么能错过 
看看有什么新东西 
当有新的发现时:
    what f**k 还能这样玩? 还有这东西?
    每周开彩蛋[吃瓜]

无法同意更多... 很多社区贡献看起来辛苦, 其实受益最多的, 就是主动承担者也.

所以++> 锈周刊 -> Weekly :: China


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

全职嗯哼: 大妈的多重宇宙 - https://www.youtube.com/@Chaos42DAMA
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开社群: 蟒营 (订阅号: Mainium)

as 创始组织者:
    CPyUG (mailling-list: python-cn@googlegroups.com)
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        AIGC珠海 


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...
点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:
Zoom.Quiet’s Chaos42 | Substack


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


蟒营®编程思维提高班Python版

**2021.01.11** 因大妈再次创业暂停定期开设, 转换为预约触发:
  • + 任何问题, 随时邮件提问可也:
    askdama@googlegroups.com
-->