PyCoder 491

slippers ~ 低代码新思路 原文: PyCoder’s Weekly - Issue #491 210922 Zoom.Quiet(大妈) 用时 42 分钟 完成快译 210922 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. 结构模式匹配在 Python 3.10 BEN HOYT “Python 3.10, which is due out in early October 2021, will include a large new language feature called structural pattern matching. This article is a critical but (hopefully) informative presentation of the feature, with examples based on real-world code.” (是也乎: LISP/Erlang 在 Python 世界的恢复… ) 用 Django 和 Python 建立个人日记 REAL PYTHON In this beginner-friendly tutorial, you’ll build a personal diary app in Django. You’ll use the strengths of the Django web framework and learn the basics of web development with Python. (非) 解开生成器表达式 BRETT CANNON What does that look like if you take away the Python “magic” of generator expressions and unravel them down to their core Python semantics? Python 反模式: 使用可变的默认值作为参数 VALI VOICU A debugging post-mortem. 更好的 Pypy JIT 支持自动生成的Python代码 CARL FRIEDRICH BOLZ-TEREICK (是也乎: PyPy 在 CPython 的平行宇宙玩出了自己的道路… ) 通过在断点开始 REPL 来调试很有趣 JULIA EVANS (是也乎: 断点进入现场 REPL 进行交互探索, 低配版 IDE ) Django 4.0 获得内置 Redis Cache 后端 GITHUB.COM/DJANGO (是也乎: 没办法了, 只能先 redis 了 ) 探讨/吐糟 Discussions ...

2021-09-22 · 5 min · 2111 words · ZoomQuiet

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