pythonista-weekly : Pyw 527

欢迎阅读《pythonista周刊》第527期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-527 翻译: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 文章、教程与话题 Data Analysis with Python for Excel Users 学习如何使用 Python 和 Pandas 进行数据分析。如果您有使用 Excel 的经验,这个课程将特别有帮助,但这不是必须的。学习如何 使用 Python、Pandas 和 Jupyter Notebook 创建透视表,处理数据,并进行可视化。 Minimax algorithm and alpha-beta pruning 这篇文章将从初学者的角度教你了解最小化算法和 α-β 修剪。 在Python中使用JavaScript风格的异步承诺 当你比较 Python 和 JavaScript 的异步代码时,你可能认为它们非常相似,因为它们都使用了异步/等待模式。实际上,两者之间有很大的区别,在我看来,这使得 JavaScript 的异步模式优于 Python 的。你想知道区别是什么,以及如何使 Async Python 像 Async JavaScript 一样工作吗?请观看或继续阅读以了解详情 ThreadPoolExecutor vs. ProcessPoolExecutor in Python 你可以将 ThreadPoolExecutor 用于绑定 IO 的任务,将 ProcessPoolExecutor 用于绑定 CPU 的任务。在本教程中,你将发现 ThreadPoolExecutor 和 ProcessPoolExecutor 之间的区别,以及何时在你的 Python 项目中使用它们。 Functional Programming in Python 在这个演讲和现场演示中,我们将探讨函数式编程的好处,以及 Python 如何使其变得简单。 恶意软件模仿签名的PyPI流量的新型渗出技术 在这篇文章中,我们将分享我们最近发现并向 PyPI 维护者披露的11个新的恶意软件包的细节(他们及时删除了这些包)。基于我们的最新发现,在这篇文章中,我们强调了 Python 恶意软件开发者为了避免被发现并留在存储库中以感染尽可能多的机器而使用的一些更先进的技术。 在Python中使用协议的静态鸭子类型化 Python 中的协议提供了一种很好的方式来使用鸭子类型,同时仍有一些静态类型保证。你可以为你的函数定义契约,而不用太在意输入的实际类型。 The fastest way to share your notebooks - announcing NotebookSharing.space 由于我们的目标是以最快的方式上传您的笔记本并与他人分享,因此不需要注册或用户账户。只要上传你的笔记本,获得链接,并以你想要的方式分享它。 Calling Rust from Python using PyO3 这篇文章给你一个关于 PyO3 的简短介绍,然后讨论几个用 Rust 编写并从 Python 中调用的例子函数。 DevOps in academic research 我学到的一些东西支持传染病流行病学家。 Best practices for containerizing Python applications with Docker 这篇文章描述了用 Docker 容器化 Python 应用程序时的6个最佳实践。 Web Development with Python and Vue.js Components 这篇文章描述了我们如何利用 Vue.js 来加强我们的网络应用。 Replicating Minecraft World Generation in Python Using Voronoi diagrams and a lot of Perlin/Simplex noise. Python中可观察性的7个关键部分 了解为什么可观察性对 Python 很重要,以及如何在你的软件开发生命周期中实现它。 Python中的CT扫描和断层扫描重建 本视频介绍了计算机断层扫描领域的基本分析重建技术。它手动展示了背投和过滤背投的工作原理,然后给出了 skimage 库中的相 应函数。 ...

2021-11-26 · 3 min · 1474 words · ZoomQuiet

PyCoder 500

500期了…从第一期开始没中断快译 原文: PyCoder’s Weekly - Issue #500 211124 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211124 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. Python 新闻: 10 月有哪些新变化? REAL PYTHON The Python community gave a warm welcome to Python 3.10 in October 2021. In this article, you’ll catch up on some big events that happened this past month, including Python being named TIOBE’s most popular programming language. (是也乎: ) 请忽略所有 Web 性能测试/包括这篇 MIGUEL GRINBERG • Shared by Caleb Hattingh ”[…] measuring web application performance is incredibly complex […] In this article you can see the results of my effort in understanding and fixing this benchmark, re-running it, and finally arriving at a shocking revelation.” (是也乎: 这才是一视同仁, 所有性能评测都不值得看, 包含作者自己这篇 ;-) 是的, 没有 Django ) 用 Python AI 构建神经网络进行预测 REAL PYTHON COURSE In this step-by-step course, you’ll build a neural network from scratch as an introduction to the world of artificial intelligence (AI) in Python. You’ll learn how to train your neural network and make accurate predictions based on a given dataset. (是也乎: 一个 step by step 的开始很重要. ) 用协议在 Python 中引入静态鸭子类型 DAAN DEBIE Protocols in Python provide a nice way to use duck typing while still having some static type guarantees. You can define contracts for your functions without caring too much about the actual types of your inputs. Minimax Algorithm and Alpha-Beta Pruning RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão The minimax algorithm and alpha-beta pruning can be used to implement AIs to play games. This tutorial will teach you about the minimax algorithm and alpha-beta pruning, from a beginner’s perspective. PyPI 用户反馈: PyPI 团队功能 PYPI TEAM The PyPI team is seeking feedback from teams using PyPI. If you use PyPI as a team, consider responding to the (short) poll form at the link. (是也乎: 只有一个原意: 恢复 pip search 并持续加速, 至少和中国高铁同步 ) Django 4.0 Release Candidate 1 发布 DJANGO SOFTWARE FOUNDATION CPython Dev In-Residence 周报, November 15–21 ŁUKASZ LANGA 探讨/吐糟 Discussions ...

2021-11-24 · 5 min · 2379 words · ZoomQuiet

pythonista-weekly : Pyw 526

欢迎阅读《pythonista周刊》第526期。Let us start 原文: https://mailchi.mp/pythonweekly/python-weekly-issue-526 翻译:Dustyposa 文章、教程与话题 Infrastructure as Code 什么是基础设施即代码?在本课程中学习,并通过实施三个 IaC 项目获得实践机会。 Trojan Source and Python 自从 11月1日 木马源码漏洞被披露以来,它们一直在各个开发社区激荡。在编程语言中处理 Unicode,尤其是双向 Unicode 时,可能会出现一些奇怪的情况,例如,Rust会检查字符串和注释中的问题代码点,如果存在这些代码点,默认情况下会拒绝编译。 Python 选择了一条不同的道路,但正在进行的工作是帮助程序员了解 Trojan Source 所强调的各种隐患。 Spotify Codes - Part 2 第一部分深入探讨了 Spotify 代码,并解释了它们如何工作的一般技术概念。这篇文章将比第一部分更有技术含量,因为作者试图解释 Spotify 是如何编码他们的条形码的。 如何在Python中对一个字典进行排序 词典最好用于键值查询:我们提供一个键,词典非常迅速地返回相应的值。但是如果你既需要键值查找又需要迭代呢?我们可以在 dictionary 上进行循环,当循环时,我们可能关心 dictionary 中项目的顺序。考虑到 dictionary 项目的顺序,你可能会想知道我们如何对 dictionary 进行排序? Django, FastAPI, Full Stack Roles & Python Programming 与 Daniel Roy Greenfeld的对话 ,他是《Two Scoops of Django》系列书籍的共同作者,也是大量 Python 和 Django 开源项目的创建者。 Game Hacking with Python and cheat engine 这篇文章告诉你如何用作弊引擎编辑内存来黑掉游戏,我们还将用 python 写一个程序,自动编辑内存,便于我们做黑客。 Customize Python dependency resolution with machine learning 本文介绍了 Project Thoth 创建的一个新的基于云的 Python 依赖性解析器。在云端运行,Thoth 使用强化学习技术和你想要的标准来解决 Python 库的依赖性。此外,一个可插拔的接口让你可以修复 underpinning 和 overpinning 问题(即指定版本的软件包过于严格或过于宽松),并对解析过程进行额外的调整。这个过程考虑到了运行环境、硬件和其他对基于云的解析器的输入。 Speed up your Conda installs with Mamba Conda 的安装速度非常慢,但你可以用一个更快的小Conda 重新实现,即 Mamba 来加速安装。 Ruby vs Python comes down to the for loop 对比每种语言处理迭代的方式,有助于理解如何有效地使用其中一种语言。 16 Reasons to Use VS Code for Developing Jupyter Notebooks VS Code has many features that make it a useful platform for Jupyter Notebook development. Getting Started With Pants and Django (Part 1) Python: Please stop screwing over Linux distros How Python list really works ...

2021-11-19 · 4 min · 1548 words · ZoomQuiet

PyCoder 499

OLPC 编程教育方面的遗产 原文: PyCoder’s Weekly - Issue #499 211117 Zoom.Quiet(大妈) 用时 13 分钟 完成快译 211117 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄. PSF 正寻求下一位执行董事 PYTHON SOFTWARE FOUNDATION After announcing earlier this summer that Ewa Jodlowska is leaving after ten years of service, the PSF has begun its search for the organization’s next Executive Director. Interested? You can apply here. 选择编程语言总是会被过早优化 BRETT CANNON opinion “Have you ever been told that Python couldn’t be used for a project because it wouldn’t be fast enough? I have, and I find it a bit frustrating as big banks, YouTube, Instagram, and plenty of other places that are performance-sensitive still manage to select Python and be happy.” (是也乎: 在没深入理解前, 被市井传说忽悠是必然; 当年从 PHP 转入 Python 也纯粹因为 Plone, 进来才发现, Python 的世界远大于 CMS ) Python 开发者的高级 VSCode REAL PYTHON In this tutorial, you’ll learn how you can configure, extend, and optimize Visual Studio Code for a more effective and productive Python development environment. By digging into this customizable code editor and IDE, you’ll put yourself on track to be a VS Code power user. (是也乎: 嗯哼, 现在只想关闭自动提醒… ) 用 Gunicorn/Nginx 和 HTTPS 安全部署 Django 应用 REAL PYTHON Ready to take your Django app beyond development? Learn how to securely deploy your Django web app in production over HTTPS with Gunicorn and Nginx. Along the way, you’ll explore how HTTP headers can fortify your app’s security. (是也乎: 其实, 一直以来关键问题都是 SSL 证书的生成和管理. ) Python 列表数据结构如何真正有效 ANTON ZHIYANOV • Shared by Anton Zhiyanov This article explores the nuts and bolts of Python list operations, their time complexity, and underlying data structures. (是也乎: 经典老书: 源代码鉴赏 可刷 ) Django Bugfix 发布: 3.2.9 DJANGO SOFTWARE FOUNDATION 探讨/吐糟 Discussions NIL ...

2021-11-17 · 4 min · 1792 words · ZoomQuiet