pythonista-weekly : Pyw 517

欢迎阅读《pythonista周刊》第517期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-517 翻译:Dustyposa 文章、教程与话题 Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial 本课程将全面介绍区块链、智能合约、solidity、NFTs/ERC721s、ERC20s、去中心化金融编码(DeFi)、python和solidity、Chainlink、Ethereum、可升级智能合约和全栈区块链开发的所有核心概念。 使用MediaPipe Hands通过手势控制无人机 学习如何在无人机的视频流中使用手势识别来控制 DJI Tello。 User File Use 也许你的应用程序需要处理来自用户的文件,如个人资料图片。要安全地接受来自他人的文件是很棘手的。在这篇文章中,我们将看到 Django 提供的安全管理文件的工具。 如何设置像 “隐藏我的电子邮件 “那样的自定义私人电子邮件中继 - 第一部分 两部分系列的第一部分解释了为什么你应该使用自定义的私人电子邮件中继,以及你如何使用 AWS 建立一个。 更好的Pythonic工厂模式 如果工厂模式是在今天而不是在90年代发明的,它会是什么样子?我讨论了工厂模式背后的设计原则,以及你如何通过使用现代 Python 特性来实现同样的事情,甚至更好。 Working in VS Code, PyCharm, Visual Studio, or Eclipse? SonarLint is a Free & Open Source IDE Extension that offers more than 170+ unique rules to find Bugs, Vulnerabilities, Security Hotspots, and Code Smells in your Python code. Discover more SPONSOR 在Python中压缩和归档文件的所有方法 用 Python 压缩、解压和管理你可能需要的所有格式的档案和文件。 在 Flask Application 中如何使用模板 在本教程中,你将建立一个小型的网络应用程序,渲染几个 HTML 文件。你将使用变量将数据从服务器传递给模板。模板的继承将帮助你避免重复。你将在模板中使用逻辑,如条件和循环,使用过滤器来修改文本,并使用 Bootstrap 工具箱来设计你的应用程序。 如何用Python求解微分方程 考察的是一阶常微分方程(ODEs)、耦合的一阶 ODEs 和高阶 ODEs。 并行的 Python 代码 这篇文章回顾了 Python 代码并行化的一些常见选择,包括基于进程的并行化、专门的库、ipython并行化和Ray。 Python Standalone Builds 这个项目生产独立的、高度可移植的 Python 发行版。这些 Python 发行版包含一个完全可用的、全功能的Python安装,以及它们的构建工件(对象文件、库等)。 Python Anti-Pattern Psycopg3 Initial Review OpenBSD’s pledge and unveil from Python 如何使用 Scrapy 抓取网页 Unravelling async for loops 逆向工程苹果词典 ...

2021-09-17 · 3 min · 1323 words · ZoomQuiet

PyCoder 490

++x 和 –x 在 Python 原文: PyCoder’s Weekly - Issue #490 210915 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210915 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 实践中应用 PEP 8 JAKE EDGE “Two recent threads on the python-ideas mailing list have overlapped to a certain extent; both referred to Python’s [PEP 8] style guide, but the discussion indicates that the advice in it may have been stretched further than intended.” Python 中专家如何 Log GUILHERME LATROVA Learn what good logging is, and how you should implement it in Python. Comes with meaningful examples and rules of thumb on what and how to log. (是也乎: 专业log姿势 ) Python新闻/ 2021年8月的新增内容是什么? REAL PYTHON August 2021 was an eventful month in the world of Python. In this article, you’ll get up to speed on everything that happened in the past month, including three new Python releases. (是也乎: ) 解开异步为循环 BRETT CANNON Python’s async for statement allows convenient iteration over asynchronous iterators. In this article you’ll see how async for loops work behind the scenes. 介绍 Pedalboard: Spotify 的 Python 音频效果库 SPOTIFY ENGINEERING BLOG 探讨/吐糟 Discussions ...

2021-09-15 · 4 min · 1687 words · ZoomQuiet

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