Issue 415

Python 编程令俺数学长进了… 原文: PyCoder’s Weekly - Issue #415 200408 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200408 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Arduino 上 Python 如何开始? REAL PYTHON course Discover how to use Arduino microcontrollers with Python to develop your own electronic projects. You’ll learn how to set up circuits and write applications with the Firmata protocol. You’ll control Arduino inputs and outputs and integrate the board with higher-level apps. (是也乎: 其实有更加友好的 MicroPython - Python for microcontrollers 生态哪… ) 最期望一早告诉俺的 有关 Python 中多进程处理的事情[2019] PAMELA MCA’NULTY Python’s multiprocessing module abstracts away a lot of the overhead involved in writing multiprocessing code in Python. But while it might be “easy” to implement multiprocessing in Python, it’s not always easy to do multiprocessing well. In this article, Pamela McA’Nulty shares five tips to help you write better multiprocessing code. (是也乎: 相比多线程, 多进程已经少很多坑了.. 但是, 那也比不上 Pyhton 自己不管任何 多XX , 运行时管理丢给系统监管就好. ) PyPI 新赞助计划 PSF PYTHON SOFTWARE FOUNDATION The Packaging Working Group of the Python Software Foundation is launching an all-new sponsorship program to sustain and improve Python’s packaging ecosystem. Funds raised through this program will go directly towards improving the tools that your company uses every day and sustaining the continued operation of the Python Package Index. pyproject.toml 到底是咩? BRETT CANNON “I have seen setuptools users use pyproject.toml because they were ‘told to by ‘ without knowing the entire point behind the file. And so I decided to write this blog post to try and explain to setuptools users why pyproject.toml exists and what it does as it’s the future of packaging in the Python ecosystem.” 配置很糟? 尝试上真正的编程语言 JESTEM KRÓLICZKIEM “In this post, I’ll try to explain why I find most config formats frustrating to use and suggest that using a real programming language (i.e. general purpose one, like Python) is often a feasible and more pleasant alternative for writing configs.” (是也乎: 配置和代码的边界太难以嗯哼了.. 俺一直使用 .py 当配置文件使用, 直到交付其它人用时, 才发现这太容易引入无法预料的人为 bug 了… 然后, 开始各种专用配置文件的尝试… 然后… 当然又回到 .py 了哈. ) 2020 Q1 PSF 资深会员 PSF PYTHON SOFTWARE FOUNDATION The PSF Fellow Members for Q1 2020 have been announced. Congratulations to all of the new fellows! Python 2.7.18 候选版-1 已经发布 PSF PYTHON SOFTWARE FOUNDATION “Python 2.7.18 will be the last release of the Python 2.7 series, and thus Python 2.” (It’s not dead, it’s resting!) 讨论 Discussions ...

2020-04-08 · 6 min · 2892 words · ZoomQuiet

Issue 414

研究花多少时间来学 Py 就好? 原文: PyCoder’s Weekly - Issue #414 200401 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200401 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 用 GloVe 向量自动查找单词线索 JAMES SOMERS In the Czech boardgame Codenames, one player must come up with a single-word clue that prompts their teammates to select certain words from a 5x5 board while simultaneously avoiding a “bomb” word that, if selected, causes the team to lose. In this article, James Somers explores how to generate clues automatically using Global Vectors for Word Representations—with surprising results. (是也乎: 在游戏中发现的现象… ) 通过创建游戏来学习 Python 技能 REAL PYTHON podcast In this episode, Christopher interviews Jon Fincher from the Real Python Team. Jon talks about his recent articles on PyGame and Arcade. They discuss if game programming is a good way to develop your Python programming skills, and if a game would make a good portfolio piece. (是也乎: 几乎变成真蟒 专场了…一则周刊中4+消息都是来自 RealPython, 不过, 人家是真的大力在原创各种嗯哼. ) SimPy: 用 Python 模拟现实世界的过程 REAL PYTHON See how you can use the SimPy package to model real-world processes with a high potential for congestion. You’ll create an algorithm to approximate a complex system, and then you’ll design and run a simulation of that system in Python. (是也乎: ) psycopg3: 第一份报告 DANIELE VARRAZZO “What’s left? Well, a lot! Now that the basic machinery is in place, and Python can send and retrieve bytes to and from Postgres, it’s time to attack the adaptation layer.” (是也乎: 叕一次重新开始尝试构筑完美 ORM 层,然后, 发现果然还是天真了… ) 软件开发中的认知偏见 STANISLAV MYACHENKOV “In this post, I will try to answer the question: why do we feel weird about technical solutions?” Not strictly Python-focused, but absolutely worth a read. (是也乎: 软件工程心理动力学 ) 通过探索 COVID-19 数据学习 Pandas MATT MAKAI “Use the pandas data analysis tool to explore the free COVID-19 data set provided by the European Centre for Disease Prevention and Control.” (是也乎: 这个真不错, 就现实世界结合在一起了… ) 您学习 Python 用了多长时间? NED BATCHELDER “Wait, don’t answer that. It doesn’t matter.” (是也乎: 现在看 42 分钟真的够了, 当年用了半年, 实在是不得法. ) 讨论 Discussions ...

2020-04-01 · 5 min · 2044 words · ZoomQuiet

Issue 413

匹兹堡的 PyCon US 2020 被取消 原文: PyCoder’s Weekly - Issue #413 200325 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200325 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 宾夕法尼亚州/匹兹堡的 PyCon US 2020 被取消 PYCON BLOG “Recently, the United States and the State of Pennsylvania have asked that large gatherings be postponed or cancelled until further notice. With that in mind, the PSF has worked to reduce financial exposure and develop a plan to provide content remotely.” (是也乎: 注视之下, 终于还是怂了.. ) 今年将推出新 pip 解析器 PSF BLOG “The developers of pip are in the process of developing a new resolver for pip (as we announced on the PSF blog last year). We aim to roll it out later this year. As part of that work, there will be some major changes to how pip determines what to install, based on package requirements.” 改进 Python 的 Pretty-Printing JAKE EDGE Some changes are being proposed to add more customization to the pprint module in Python 3.10 or later, and while a PEP hasn’t been created yet, there are some internal discussions going on debating whether or not such a change is worthwhile and what the API might look like. The Real Python Podcast 上线 REAL PYTHON podcast A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community. The show covers a wide range of topics including Python programming best practices, career tips, and related software development topics. (是也乎: 也来了哪… 俺们的也有了哪: fm.101.camp 蟒营™电台 钩陈各种值得探讨 ) Python Scope & the LEGB Rule: 在代码中解析名称 REAL PYTHON In this step-by-step tutorial, you’ll learn what scopes are, how they work, and how to use them effectively to avoid name collisions in your code. Additionally, you’ll learn how to take advantage of a Python scope to write more maintainable and less buggy code. (是也乎: LEGB 法则真的是无上真理, 但是, 官方并没约定一个固定的形式, 所以, 导致大家都在摸索自己的… ) CPython 3.9.0a5 现在可用于测试 PYTHON.ORG DjangoCon Europe 2020 推迟到9月 DJANGOPROJECT.COM 讨论 Discussions ...

2020-03-25 · 5 min · 2320 words · ZoomQuiet

Issue 412

嫑乱打日志 原文: PyCoder’s Weekly - Issue #412 200318 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 200318 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 最关键的 Python 代码指标 STEVE DOWER “Code metrics are a popular way to analyse the complexity of our software. For some reason, we are attracted to single-figure summaries of quality, whether it’s lines of code, cyclomatic complexity, or the Pylint score. Personally, I think using these are about as valuable as judging another person based on one of their visible or measurable characteristics.” (是也乎: 对 圈复杂度 们的叕一次私人反击, 但是, 资本将重构一切. ) 用 PyGame 作 2D 卷轴游戏 REAL PYTHON video In this step-by-step course, you’ll learn how to use PyGame. This library allows you to create games and rich multimedia programs in Python. You’ll learn how to draw items on your screen, implement collision detection, handle user input, and much more. (是也乎: 卷轴式游戏从无到有… ) 机器学习十大 Python 软件包 ACTIVESTATE sponsor The field of data science is rapidly growing and relies heavily on Machine Learning; with hundreds of ML libraries, Python has become the language of choice for most engineers. Check out ActiveState’s list of the top 10 ML packages to learn → (是也乎: 一直低调赚钱的 ACTIVESTATE , 发布的 Python 发行版本可以说是最稳定的一支; 他们心目中的 ML 模块是: #10 Matplotlib #9 Natural Language Toolkit (NLTK) #8 Pandas #7 Scikit-learn #6 Seaborn #5 NumPy #4 Keras #3 SciPy #2 Pytorch #1 TensorFlow 嗯哼, 有两个纯粹可视化模块… 以及, TF 完胜 PyTorch … ) ...

2020-03-18 · 5 min · 2052 words · ZoomQuiet