Issue 358

原文: PyCoder’s Weekly - Issue #358 PEP 584: 在内置 Dict 类中添加+和 - 运算符 PYTHON.ORG This PEP suggests adding merge + and difference - operators to the built-in dict class. The merge operator will have the same relationship to the dict.update method as the list concatenation operator has to list.extend, with dict difference being defined analogously. I think this is a pretty cool feature suggestion. Related discussion here. (是也乎: 简单说, 用直觉计算符号来操作最常用的 dict 对象… d = {‘spam’: 1, ’eggs’: 2, ‘cheese’: 3} e = {‘cheese’: ‘cheddar’, ‘aardvark’: ‘Ethel’} d + e {‘spam’: 1, ’eggs’: 2, ‘cheese’: ‘cheddar’, ‘aardvark’: ‘Ethel’} e + d {‘cheese’: 3, ‘aardvark’: ‘Ethel’, ‘spam’: 1, ’eggs’: 2} ) ...

2019-03-06 · 5 min · 2005 words · ZoomQuiet

Issue 349

原文: PyCoder’s Weekly - Issue #349 Happy New Year! It’s been an amazing 2018 for Python and I can’t wait to see what 2019 has in store for us. With so much growth and excitement in the space I’m really enthusiastic for the future of Python and our global community. For this week’s issue it felt appropriate to include a couple of retrospectives and recap articles. From the new PyPI website launching to Guido stepping down as BDFL, a lot has happened after all. So here’s to a successful 2019 for you! Happy Pythoning! — Dan Bader, Editor (是也乎: 从12年开始, 坚持翻译发布技术周刊有6年了, 其间关注过很多种 weekly ,只有 PyCoder's Weekly 一直稳定嗯哼, 现在不易… ) ...

2019-01-02 · 5 min · 2210 words · ZoomQuiet

蠎加载 187

原文: Import Python Weekly Newsletter - Issue No 187 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 最近官方更新的不规律, 俺也不好按时自造… 该读 ~ 文章, Blog, 教程… ...

2018-11-09 · 4 min · 1579 words · ZoomQuiet

蠎加载 186

原文: Import Python Weekly Newsletter - Issue No 186 欢迎, 来 PyChina/weekly 共同翻译/增订/推荐 周刊 蠎消息 ;-) 最近官方更新的不规律, 俺也不好按时自造… 该读 ~ 文章, Blog, 教程… ...

2018-10-06 · 4 min · 1768 words · ZoomQuiet