机器狗已在公开发售,支持用 Python 对其编程...
原文: PyCoder's Weekly - Issue #427
- 200701 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
- 200701 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.
-
- PYTHON.ORG
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.
(是也乎:
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 了.
)
-
Clinging to Memory: Python 函数调用如何增加内存使用量
- ITAMAR TURNER-TRAURING
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.
-
Python的 reduce(): 从实用风格到 Pythonic 风格
- REAL PYTHON
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.
(是也乎:
用 eomji 来解释...
)
-
- BRETT CANNON
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.
(是也乎:
这 logo 也忒萌了吧...
)
-
Python 模式匹配: 守卫和其他模式可能不会以您期望的方式进行交互
- NICK ROBERTS
There’s an implementation of PEP 622 that you can try out here. But it has some potentially confusing effects.
-
Boston Dynamics 现在向公众出售机器狗,您可以使用Python对其进行编程
- RON AMADEO
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!
(是也乎:
嗯哼?大众也可以拥有军事级机械人了?
)
-
- ALVIN WAN
Is that a corgi or a goldfish?
讨论
Discussions
-
- STACK OVERFLOW
Considering issues like floating-point representation error, is it ever a good idea to use a float as an index?
-
- STACK OVERFLOW
Is it, though? The square root of 2 might not be a good value for timing comparisons.
文章,教程和嗯哼
Articles, Tutorials and Talks
-
The Python heapq 模块: 使用 Heaps 和优先级队列
- REAL PYTHON
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.
(是也乎:
)
-
- HACKEREGG.GITHUB.IO
The lru_cache decorator allows you to take advantage of memoization to optimize function calls.
-
- REAL PYTHON
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 流程, 好赞.
)
-
- PYTHON.ORG
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.
-
- REAL PYTHON
- podcast
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.
(是也乎:
)
-
- ROMAN TOMJAK
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 Enterprise Linux 8.2 带来更快的 Python 3.8 运行速度
- TOMAS OROSAVA
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.
-
- A. COADY
- opinion
Should you use mutable objects for default function arguments? Conventional wisdom says no, but has the risk been overstated?
-
[Street Lanes Finder: 检测无人驾驶汽车的街道车道[2019]](https://pycoders.com/link/437...
- GREG SURMA
Learn how to use OpenCV to detect street lanes in an image of a road.
好物
Interesting Projects, Tools and Libraries, Projects & Code
-
- GITHUB.COM/BOSTON-DYNAMICS
-
Nuitka: Nuitka是用Python写的Python编译器
- GITHUB.COM/NUITKA
(是也乎:
好久没见这位的消息了,
还活着, 甚好.
)
-
- GITHUB.COM/KUMMAHIIH
-
TextAttack: NLP 中用于对抗性攻击/数据增强和模型训练的 Python 框架
- GITHUB.COM/QDATA
(是也乎:
NLP 相关项目越来越多,
说明 AI 落地首先是这个方向?
)
-
konlpy: 用于 朝鲜语 自然语言处理的 Python软件包
- GITHUB.COM/KONLPY
(是也乎:
嗯哼, 很少见的小语种 NLP 模块哪...
目测是国家项目?
)
-
pyperclip: 跨平台 剪贴板 功能的 Python 模块
- GITHUB.COM/ASWEIGART
(是也乎:
这个可以有,
通过Py 就可以和远程主机进行 剪贴板 自动同步操作了?
)
-
magnum: 轻量级和模块化 C++11/C++14 图形中间件,用于通过Python绑定进行游戏和数据可视化
- GITHUB.COM/MOSRA
(是也乎:
反正 Python 从内核就设计的异常亲 C,
所以, 各种 C++ 的模块进行包装很自然.
)
📆🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
-
- July 4 to July 6, 2020
-
- July 6 to July 13, 2020
(是也乎:
中国也已经接到有关通知, 允许线下集会申报了...
而且今年程序员节(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)
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。