range 不是迭代器

原文: Python recap for week 2024/42 - discu.eu

  • 241021 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.
  • 241021 Zoom.Quiet(大妈) 用时 42 分钟 完成快译,


文章/教程/嗯哼

Articles, Tutorials and Talks

(是也乎:

Donna Kalil

真.佛州不养闲人...

)

(是也乎:

请说“可迭代”或“惰性可迭代”

)

(是也乎:

非常切实的经验, 说服我先使用 SQLite 了...

)

(是也乎:

都有超过 2% 的提升

)

(是也乎:

真.无代码应用网页

)

(是也乎:

灵魂一问...

)

(是也乎:

微服务再次不微起来...

)


发布...

Release...


好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

...🗃 开源自托管网络存档。获取 URL/浏览器历史记录/书签/Pocket/Pinboard/等,保存 HTML、JS、PDF、媒体等...

出发点非常简单, 而且技术栈选择也很个性:使用 Chrome、 wget和yt-dlp等标准工具,并将数据存储在普通文件和文件夹中...

问题在:

轻松的完成获取后, 并没配套工具来维护本地目录中的文件,一但意外损伤后, 并无能力恢复?

以及, 只有一个图片流式的提醒界面最多提供内部搜索, 和早先 ScrapBook 支持的树状目录索引相比, 不够实用哪...

特别是本地抓取了超过1千网页后, 想快速回顾其中一个, 点击超过4次, 基本上就没有动力使用了...

)

(是也乎:

聪明的引入了 par 函数...

from paragraphs import par

class SuddenDeathError(Exception):
    def __init__(self, cause: str) -> None:
        self.cause = cause

    def __str__(self) -> str:
        return par(
            f"""
            Y - e - e - e - es, Lord love you! Why should she die of
            {self.cause}? She come through diphtheria right enough the year
            before. I saw her with my own eyes. Fairly blue with it, she was.
            They all thought she was dead; but my father, he kept ladling gin
            down her throat till she came to so sudden that she bit the bowl
            off the spoon.

            What call would a woman with that strength in her have to die of
            {self.cause}? What become of her new straw hat that should have
            come to me? Somebody pinched it; and what I say is, them as pinched
            it done her in."""
        )

raise SuddenDeathError("influenza")

)

(是也乎:

RTFD

是 FLOSS 界最知名的一句咒语, 其根本原因, 可能并不在 文档 品质, 而是对于那些辛辛苦苦攒出来自己都不喜欢的文档工程师而言, 不够尊重?

所以, 现在变成了:

TFD

将文档丢给 LLam 们

)


🐍 视频

Videos...

(是也乎:

等等, 这么搞, JAVA 乐意嘛?

)

(是也乎:

Pycharm+Django 瞬间就没了兴趣...

)


历史这周


DAMA

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

            _~~+-~_
        \) /  ◷ *  \ (/
          '_   ⩌   _'
          \ '--#--' )

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

PS:

  • 首发: [2024/42 ~上周蠎快讯 ~汇集全球蠎事儿 ;-)](http://weekly.pychina.org/pyrecap/pyrw-2440.html1
  • 修订: [pyrw-2440.md](https://github.com/PyChina/weekly/tree/master1content/pyrecap/pyrw-2440.md1

Happy Pythonic

Copyright © 2024 Python weekly newsletter, All rights reserved.

PPS:

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

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

问为什么:

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

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


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

投稿/反馈邮箱:

askdama@googlegroups.com

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


ZoomQuiet/大妈

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

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

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


Comments


大妈的多重宇宙 - YouTube

全新自媒体系列...科学幻想,读书,说故事...

任何问题

随时邮件提问可也:
askdama@googlegroups.com

-->