pythonista-weekly : Pyw 516

欢迎阅读《pythonista周刊》第516期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-516 翻译:Dustyposa 来自赞助商(PS:原文的赞助商) Get Your Weekly Dose of Programming A weekly newsletter featuring the best hand curated news, articles, tutorials, talks, tools and libraries etc for programmers. Join For Free 新闻 FlaskCon 2021 Volunteer Call 文章、教程与话题 Deriving Guitar Theory in ~400 Lines of Python 本文着眼于使用 Python 将基本的音乐理论应用于吉他,以便推导出交替调音的和弦和音阶。 Python中的数据结构和算法 对 Python 中常见的数据结构(链表、堆栈、队列、图)和算法(搜索、排序、递归、动态编程)进行初学者友好的介绍。本课程将帮助你为编码面试和评测做准备。 Can Podcasts Predict the Stock Market? 每个人都想知道如何预测股票市场。大家也都知道,这基本上是不可能的。在这篇文章中,我们将介绍如何将播客数据与股市数据进行比较,以及两个著名的新闻播客《The Daily》和《Up First》去年的新闻负面评价对去年股市的影响,特别是道琼斯工业平均指数、纳斯达克指数和皇家黄金。 Debugging Python C extensions with GDB 你可以在 Python 3.9 中使用C调试器来调试C扩展。了解如何使用改进的 Python 调试版本和 GNU 项目调试器( GDB )。 Python for Distributed Systems 如何为大数据编写可横向扩展的脚本。 Experimenting with Python implementation of Host Identity Protocol 这篇文章描述了各种安全解决方案,HIP 协议的一些实现细节,以及使用 Python 语言实现的 HIP 和 IPSec 协议的性能。 如何在Docker中使用Apache和mod_wsgi为Python Django应用设置环境变量 找到在 Docker 中为 Python 应用程序使用 Apache 和 mod_wsgi 的环境变量的正确姿势。 The Double Pendulum in Python 学习如何用 sympy 推导出双摆的微分方程组,用 scipy 的 odeint 函数数值解方程组,并用 matplotlib 制作双摆的动画。 A friendly introduction to machine learning compilers and optimizers 了解编译器的工作原理可以帮助你选择正确的编译器,将你的模型带到你选择的硬件上,以及诊断性能问题和加速你的模型。这篇文章是对ML编译器的一个友好的、无障碍的介绍。 GitHub Actions EC2 Blue/Green Deployment 使用 GitHub Actions 和 CodeDeploy Blue/Green Deployment + EC2 将 Django 项目部署到 AWS(适用于 Flask/FastAPI/Rails )。 Version control for Jupyter notebooks Jupyter notebook很难进行 diff 和合并,因为它们同时包含了代码和输出,但工具和实践可以使版本控制更容易。 An Introduction to Reinforcement Learning with OpenAI Gym, RLlib, and Google Colab 强化学习(RL)的一个可能的定义是,在与环境互动时,学习如何使奖励的总和最大化的一种计算方法。虽然定义是有用的,但本教程旨在通过图像、代码和视频例子来说明什么是强化学习,并顺便介绍强化学习术语,如代理和环境。 State Pattern in Python 学习使用 Python 实现状态模式和有限状态机。 Speeding up Python Jupyter notebooks 25x with simple concurrency, and fast AWS servers Logging in Python like a PRO 如何使用Python跟踪个人财务状况 HTMX Examples using Django Making Numpy Accessible: Guidelines and Tools ...

2021-09-10 · 3 min · 1445 words · ZoomQuiet

PyCoder 489

全新姿势来告知你 Python 代码很糟糕 原文: PyCoder’s Weekly - Issue #489 210908 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210908 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PEP 668: 外部和Python包管理人员之间的优雅合作 PYTHON.ORG This draft PEP proposes a way for resolving conflicts between OS package managers (e.g. apt) and Python-specific package management tools (e.g. pip). 学习Python需要多长时间? REAL PYTHON How should someone assess whether or not learning Python is a good investment of their time, how long it will take them, and what background factors they need to consider when planning their learning journey? This article attempts to clarify these common beginner questions. (是也乎: 简单说, 42分钟到42年不等… 嗯哼? 对比俺之前的断言 Unknow Unknow 不知不知何 unconscious incompetence 无意识无能 Unknow Know 不知己知何 conscious incompetence 有意识的无能 Know Know 知己已知何 conscious competence 意识能力 Know Unknow 知己不知何 unconscious competence 无意识能力 ) Track Python Application Performance With End-to-End Tracing With Datadog APM DATADOG sponsor With Datadog APM you can debug errors and bottlenecks in your code by tracing requests across web servers and services in your environment. Then correlate between distributed request traces, metrics, and logs to troubleshoot issues without switching tools or contexts. Try Datadog APM free → 如何用 Python 跟踪私人财务 SIDDHANT GOEL This post introduces readers to a workflow for tracking their personal finances using only the Python ecosystem. The end result is extremely focused on data privacy, uses only open-source software, and is 100% self-hosted. (是也乎: 等等, 首先私人资金要多少, 才值得上手段来进行金融管理? ) 全新姿势来告知你 Python 代码很糟糕 NICK DROZD How and why the author added two new linter rules to Pylint: consider-ternary-expression and while-used. (是也乎: 圈复杂度的另类使用…? ) Forgiveness in Python 的成本要求 WALID ZIOUCHE A discussion of EAFP (“Easier to ask for forgiveness than permission”) vs LBYL (“Look before you leap”) code patterns in Python. (是也乎: 嗯哼? 还有这种编程流派的? ) Nuitka 0.6.15 发布 NUITKA DEV BLOG Nuitka is a Python compiler written in Python, compatible with Python2 (2.6, 2.7) and Python3 (3.3–3.9). You feed Nuitka your Python source code and it generates an executable or extension module. (是也乎: 淦…非官方编译器 ) Credit-Card-Stealing, 在 PyPI 上发现的后门包 CHRIS WILLIAMS 探讨/吐糟 Discussions ...

2021-09-08 · 5 min · 2306 words · ZoomQuiet

pythonista-weekly : Pyw 515

欢迎阅读《pythonista周刊》第515期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-515 翻译:Dustyposa 新闻 Join the PyCon US 2022 team! 想在 PyCon US 的规划和成功中发挥关键作用吗?这是你的机会,快来吧! IEEE Spectrum’s Top Programming Languages 2021 Python 作为新技术的事实平台占主导地位。 ...

2021-09-03 · 3 min · 1170 words · ZoomQuiet

PyCoder 488

IEEE#1 开发语言 -> Python 原文: PyCoder’s Weekly - Issue #488 210901 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210901 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python在IEEE“顶级编程语言”中排名第一 IEEE.ORG “Python dominates as the de facto platform for new technologies” and “Learn Python. That’s the biggest takeaway we can give you from its continued dominance of IEEE Spectrum’s annual interactive rankings of the top programming languages. You don’t have to become a dyed-in-the-wool Pythonista, but learning the language well enough to use one of the vast number of libraries written for it is probably worth your time.” skybison: Instagram 的实验性能面向 Feenfield Python 实现 GITHUB.COM/FACEBOOKEXPERIMENTAL “Skybison is experimental performance-oriented greenfield implementation of Python 3.8. It contains a number of performance optimizations, including: small objects; a moving GC; hidden classes; bytecode inline caching; type-specialized bytecode; an experimental template JIT.” 如何在定义 Python 函数时使用可选参数 REAL PYTHON In this tutorial, you’ll learn about optional arguments in Python and how to define functions with default values. You’ll also learn how to create functions that accept any number of arguments using args and kwargs. (是也乎: ) Python Project-Local 虚拟环境管理 HYNEK SCHLAWACK On UNIX-like operating systems you can have the Python equivalent of node_modules today, for every Python version, without changing your workflows. 谦虚的软件BUNDLE: Python Superpowers 2021 HUMBLEBUNDLE.COM Pick up the awesome programming potential of Python with software like Mastering PyCharm (2021 Edition) & Object-Oriented Programming (OOP) in Python. Pay what you want & support charity! 加入Pycon US 2022团队! PYCON US The PyCon US organizers are looking for motivated volunteers who want to contribute their time and knowledge to make this year’s conference a great success. Python 3.9.7 和 3.8.12 现已推出 CPYTHON DEV BLOG More info in the full changelog. 探讨/吐糟 Discussions ...

2021-09-01 · 4 min · 1893 words · ZoomQuiet