蟒週刊-427-機器狗已在公開發售,支持用 Python 對其編程...

機器狗已在公開發售,支持用 Python 對其編程...

原文: PyCoder's Weekly - Issue #427html

pycoder

  • 200701 Zoom.Quiet(大媽) 用時 42 分鐘 完成快譯
  • 200701 Zoom.Quiet(大媽) 用時 37 分鐘 完成格式轉抄.

This PEP proposes adding pattern matching—a sort of enhanced switch statement—to the Python language. Read the PEP at the link above and follow the discussion on Reddit.python

(是也乎:git

def is_tuple(node: Node) -> bool:
    match node:
        case Node(children=[LParen(), RParen()]):
            return True
        case Node(children=[Leaf(value="("), Node(), Leaf(value=")")]):
            return True
        case _:
            return False

這很是 Elixir 了.程序員

)github

One of the advantages Python has over a language like C is that you don’t have to worry about how memeory is freed up during program execution. But sometimes Python’s memory management doesn’t work the way you’d expect.正則表達式

In this step-by-step tutorial, you’ll learn how Python’s reduce() works and how to use it effectively in your programs. You’ll also learn some more modern, efficient, and Pythonic ways to gently replace reduce() in your programs.網絡

(是也乎:

reduce...

用 eomji 來解釋...

reduce

)

What makes Python… Python? Is it the language semantics? A set of features? What could you strip away and still have something you’d call Python? Everyone needs a little programming language existentialism now and then.

(是也乎:

RustPython

這 logo 也忒萌了吧...

)

There’s an implementation of PEP 622 that you can try out here. But it has some potentially confusing effects.

It only took 28 year, but now you can have your very own robot dog. If you can stomach the price tag, that is. But hey, it’s got a Python SDK!

(是也乎:

Boston

嗯哼?大衆也能夠擁有軍事級機械人了?

)

Is that a corgi or a goldfish?

討論

Discussions

Considering issues like floating-point representation error, is it ever a good idea to use a float as an index?

Is it, though? The square root of 2 might not be a good value for timing comparisons.

文章,教程和嗯哼

Articles, Tutorials and Talks

Explore the heap and priority queue data structures. You’ll learn what kinds of problems heaps and priority queues are useful for and how you can use the Python heapq module to solve them.

(是也乎:

heapq

)

The lru_cache decorator allows you to take advantage of memoization to optimize function calls.

In this course, you’ll get a Python-centric introduction to character encodings and Unicode. Handling character encodings and numbering systems can at times seem painful and complicated, but this guide is here to help with easy-to-follow Python examples.

(是也乎:

Unicode

用無線電載波來形容 Unicode 流程, 好贊.

)

Author Victor Stinner argues that Python’s C API is too close to the CPython implementation, which limits available optimizations and hinders the addition of new features. PEP 622 proposes hiding implementation details from the C API.

Have you wanted to learn Regular Expressions in Python, but don’t know where to start? Have you stumbled into the dreaded pink SettingWithCopyWarning in Pandas? Then check out this episode of the Real Python Podcast.

(是也乎:

podcast

)

The Dependency Inversion Principle helps you design code that is more extensible and easier to test. You can use it to test code that makes HTTP requests without using mocks.

(是也乎:

隨着微服務的擴張,
RPC 盛大回歸,
基於 HTTP 的請求愈來愈少的了...

)

Red Hat explains how they compiled CPython with GCC’s -fno-semantic-interposition flag to get run time speed improvements up to 30% faster than normal.

Should you use mutable objects for default function arguments? Conventional wisdom says no, but has the risk been overstated?

Learn how to use OpenCV to detect street lanes in an image of a road.

好物

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

很久沒見這位的消息了,
還活着, 甚好.

)

(是也乎:

NLP 相關項目愈來愈多,
說明 AI 落地首先是這個方向?

)

(是也乎:

嗯哼, 不多見的小語種 NLP 模塊哪...
目測是國家項目?
)

(是也乎:

這個能夠有,
經過Py 就能夠和遠程主機進行 剪貼板 自動同步操做了?

)

(是也乎:

反正 Python 從內核就設計的異常親 C,
因此, 各類 C++ 的模塊進行包裝很天然.
)

📆🐍 活動/大會

Events, MeetUp 真的是全球線下活動組織中心

(是也乎:

中國也已經接到有關通知, 容許線下集會申報了...

並且今年程序員節(10.24)可能有超級大會.

)

DAMA

❤️ Happy Pythonic ;-( 大媽私人無責任播報)

101camp10py 開始報名

報名

課程規劃:
    報名截止 2020.7.20
    正式開課 2020.7.26
    課程結束 2020.9.06

詳情 => 蟒營™ Python 入門班第10期

提醒: 首週報名再優惠 420 元.

PS:


NN 4061

好文筆,感嘆號年度配額: 1/3

投稿/反饋郵箱:

askdama@googlegroups.com

(郵件列表地址,
當成正常郵件發送郵件就好, 不用註冊, 不用翻越...)


ZoomQuiet/大媽

就是四處 是也乎,( ̄▽ ̄) 的那個大媽:

私自嗯哼: ZoomQuiet (訂閱號: ZoomQuiet42)
公開課程: 蟒營 (訂閱號: Mainium)
歷史吐糟: Chaos42 (訂閱號 PythoniCamp)

as 創始組織者:
    PyChina (訂閱號: PyChinaOrg)
    本地社區: 
        GDG珠海 (訂閱號: GDG-ZhuHai)
        TFUG珠海 (訂閱號: ZH_TFUG)

RPP

相關文章
相關標籤/搜索