蟒周刊:394

2024-02-20 18:40
文章标签 周刊 394

本文主要是介绍蟒周刊:394,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

从 12 年坚持翻译的周刊系列,为 PyCoder's Weekly 快速翻译。包含上周,全网 Python 相关文章/讨论/项目/活动/……的推荐,以及简介。

推荐阅读:对 Python 生态以及动向有兴趣的开发者

俺的 Python 开发环境 2020 版

原文: PyCoder's Weekly - Issue #394

PyCoder

  • 191113 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 191113 Zoom.Quiet(大妈) 用时 17 分钟 完成格式转抄.

  • PSF 寻求开发商以提高 pip 品质
    • PYFOUND.BLOGSPOT.COM
    • • Shared by Brian Rutledge

The Python Software Foundation Packaging Working Group is receiving funding to work on the design, implementation, and rollout of pip’s next-generation dependency resolver. Funding has been allocated to secure a senior developer and an intermediate developer, starting in December 2019 or January 2020. RFP open now through November 22.

  • 俺的Python开发环境,2020版
    • JACOB KAPLAN-MOSS

The co-creator of Django explains his Python environment: “My setup pieces together pyenv, poetry, and pipx. It’s probably a tad more complex than is ideal for most Python users, but for the things I need, it’s perfect.” Related discussion on Hacker News.

(是也乎:

来了, 又来了, 每年更新最具有引战体质话题...

pipenv 被弃用非常明智...)

  • 何时在Python中使用列表推导
    • REAL PYTHON

Python list comprehensions make it easy to create lists while performing sophisticated filtering, mapping, and conditional logic on their members. In this tutorial, you’ll learn when to use a list comprehension in Python and how to create them effectively.

(是也乎:

Comprehension

最讨巧也最容易滥用的技巧...

简单说:

在应该使用时

)

  • Python中的“解析”
    • ASTHASR.GITHUB.IO

“Don’t be afraid to create new, more specific data types for your specific use cases. It’s okay to represent different data, used for different purposes, with different data structures, and makes later generalization easier!”

(是也乎:

毕竟 Python 内置的, 而对其它对象的分析, Python 生态中工具也是最多的...

所以, 嫑怕, 放心定制自己舒服的...)

  • 使用 Keras 和深度学习发现自然灾害
    • ADRIAN ROSEBROCK

In this tutorial, you will learn how to automatically detect natural disasters (earthquakes, floods, wildfires, cyclones/hurricanes) with up to 95% accuracy using Keras, Computer Vision, and Deep Learning.

  • Python 成为 GitHub 第二受欢迎的语言
    • DEVELOPER-TECH.COM

GitHub has published its latest State of the Octoverse report which provides fascinating insights into the development industry.

(是也乎:

第一当然是 JAVA 了, 报告中还有其它有趣的结论:

谁是增长最快的语言? 哪个编辑器最受欢迎...

当然, 无论调查如何, 自己舒服的才是最好的.

)

  • 简单便携式 Python 解释器的复杂路径
    • GLAUBER COSTA

“We needed a Python interpreter that can be shipped everywhere. You won’t believe what happened next!”

(是也乎:

简单说, 用专用工具来完成...别自己乱来...)

  • 那些最为低估的 Python 软件包
    • EYAL TRABELSI

(是也乎:

除了 this 模块之外, 在各种领域都散落有官方一直没注意到的神奇模块,当然, 多数都是和大数据相关的, pandas 插件, 数据清理/探索, 以及性能检测什么的...

值得逐一尝试体验...

)

  • 停止使用 utcnow 以及 utcfromtimestamp
    • PAUL GANSSLE

(是也乎:

简单说 datetime 才是最好的选择.)

讨论

Discussions

NIL

文章教程

Articles, Tutorials and Talks

  • Python Lambda 函数测验
    • REAL PYTHON

Python lambdas are little, anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions. Test your understanding on how you can use them better!

(是也乎:

真蟒 少见的随堂测试, 大家可以尝试一下看对 Lambda 应用场景理解的是否嗯哼

)

  • Teaching Python 第 31 集: 2024年学校中的 Python
    • TEACHINGPYTHON.FM
    • podcast

“In this episode, Kelly and Sean discuss plausible trends in machine learning, artificial intelligence, augmented and virtual reality, and data science that we may see in schools by 2024. We focus on 5 areas from microscale in the classroom to macro across the entire educational system.”

(是也乎:

未来的教育中, Python 应该什么样?

AI 将泛滥, 工具将更加丰富, 老师将更加无力, 学生自主行为必然得到越来越大的加强

)

  • 如何在 Python 中用 Asyncio 处理协程
    • ERIK MARSJA

Learn about coroutines in Python by example. More specifically, you’ll see how to handle coroutines using asyncio.

  • 用 Python 思考递归
    • REAL PYTHON
    • video

In this course, you’ll learn how to work with recursion in your Python programs by mastering concepts such as recursive functions and recursive data structures.

(是也乎:

Recursively

递归...其实, 至今见过最精巧的 Recursively 都是在 LISP 生态中...

)

  • 如何用 Pandas 在 Python 中读取 Stata 文件
    • ERIK MARSJA

Learn how to read Stata (.dta) files in Python and how to write a Stata file to CSV and Excel files.

  • 用 Flask 和 Vue.js 开发单页应用程序
    • MICHAEL HERMAN

A step-by-step walkthrough of how to set up a basic CRUD app with Vue and Flask.

(是也乎:

Flask 的热点关联一直很专业

)

  • 现代 Web 中的 Tornado 框架
    • MANADOMA.COM

Exploring a Tornado use case in low memory environment.

(是也乎:

Tornado 严格意义上并不是框架, 而是基础组件,当然, 也可以独立使用, 所以, 在小内存环境中很得趣...

)

  • 在 Python 中管理许多 extras_require 依赖关系的更好实践
    • HAN XIAO

(是也乎:

叕一个模块依赖管理思路...只是, 第三方没什么好说的, 一但定型都是固定的,工程内部自制模块的管理才是困难点吧...

)

  • Python VS Common Lisp, 工作流和生态系统
    • LISP-JOURNEY.GITLAB.IO

(是也乎:

等等, 这有什么好比较的? 关注方向都相反的吧...

)

  • 用 Python 解开 Quantum Supremacy 基准测试

    • M. SOHAIB ALAM
  • [11 个新 Python Web 框架](https://pycoders.com/link/2908/web)
    • DEEPSOURCE.IO

(是也乎:

一半都是5年以上老框架了,,,,而且多数都是专注 RESTful API 生成的, 并不是通用 web 应用框架

)

  • Laziness 和 Streams

    • JEREMIAH MALINA
  • 在 GCP 上用 Python 创建 Slack 应用

    • WILL LARSON
  • 用 stylecloud 生成时尚词云

    • ABDUL MAJED

好物

Interesting Projects, Tools and Libraries, Projects & Code

  • SeleniumBase: 用 Python 轻松进行 Web 自动化和测试
    • GITHUB.COM/SELENIUMBASE

(是也乎:

SeleniumBase

首先, 还是得起一个完整的 浏览器哪...

)

  • flupy: Python 和您 Shell 间流畅数据管道
    • GITHUB.COM/OLIRICE

(是也乎:

CLI 果然是最好的界面

)

  • rele: 易于使用的 Google Pub/Sub
    • GITHUB.COM/MERCADONA

(是也乎:

好是好, 可惜不存在哪..

)

  • pythran: Python -> C++ 转换器
    • GITHUB.COM/SERGE-SANS-PAILLE

(是也乎:

这真的稳定了, 那 C++ 老司机可就惨了...

)

  • pytest-quarantine: 管理预期的失败测试
    • GITHUB.COM/ENERGYSAGE
    • • Shared by Brian Rutledge

(是也乎:

这就叫专注... pytest 的插件,专门管理一定失败的安全带.

$ pytest --quarantine====== test session starts ======...collected 1380 itemsadded mark.xfail to 661 of 661 items from quarantine.txt...====== 719 passed, 661 xfailed in 300.51 seconds ======

)

活动/大会

Events, MeetUp 真的是全球线下活动组织中心

  • ⋅ Python Atlanta

    • November 14, 2019
    • USA
  • ⋅ Karlsruhe Python User Group (KaPy)

    • November 15, 2019
    • 德国
  • ⋅ Chattanooga Python User Group

    • November 15, 2019
    • USA
  • ⋅ BangPypers

    • November 16, 2019
    • 印度
  • [⋅ PyLadies Dublin](https://pycoders.com/link/2876/web)
    • November 21, 2019
    • 爱尔兰

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

  • 蟒营 Python 入门班
    • 第4期
    • 101camp4py

第4期已上线, 为期6周;

191124 报名结束191201 正式开课200112 按时结束

是也乎

NN 3829

  • 首发: Issue 394 ~蠎周刊 ~汇集全球蠎事儿 ;-)
  • 改进: issue-394.md

本文首发于 GitChat,未经授权不得转载,转载需与 GitChat 联系。

阅读全文: http://gitbook.cn/gitchat/activity/5dce022f7a5c1248a6e26735

您还可以下载 CSDN 旗下精品原创内容社区 GitChat App , GitChat 专享技术内容哦。

FtooAtPSkEJwnW-9xkCLqSTRpBKX

这篇关于蟒周刊:394的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/729170

相关文章

【Hot100】LeetCode—394. 字符串解码

目录 1- 思路栈实现+四种情况处理 2- 实现⭐394. 字符串解码——题解思路 3- ACM 实现 原题链接:394. 字符串解码 1- 思路 栈实现+四种情况处理 ① 遇到数字,进行倍数相加 、②遇到左括号,压栈之前的元素、③遇到右括号弹出,栈进行拼接、④否则遇到字母,直接拼接在 res通过栈,实现先进后出的思想 对于输入 3[a2[c]] 的输入,在读到 3[得

[LeetCode] 394. Decode String

题:https://leetcode.com/problems/queue-reconstruction-by-height/description/ #题目 Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), wh

C++ | Leetcode C++题解之第394题字符串解码

题目: 题解: class Solution {public:string src; size_t ptr;int getDigits() {int ret = 0;while (ptr < src.size() && isdigit(src[ptr])) {ret = ret * 10 + src[ptr++] - '0';}return ret;}string getString()

Golang | Leetcode Golang题解之第394题字符串解码

题目: 题解: var (src stringptr int)func decodeString(s string) string {src = sptr = 0return getString()}func getString() string {if ptr == len(src) || src[ptr] == ']' {return ""}cur := src[ptr]repTi

Python | Leetcode Python题解之第394题字符串解码

题目: 题解: class Solution:def decodeString(self, s: str) -> str:stk = []for ss in s:# 不是"]",照单全收,进栈if ss!="]":stk.append(ss)else:# 遇到"]",把"[]"裹起来的单词取出,记为wordword = ""while stk[-1]!="[":word = stk.pop

.NET周刊【9月第1期 2024-09-01】

国内文章 【音视频通话】使用asp.net core 8+vue3 实现高效音视频通话 https://www.cnblogs.com/1996-Chinese-Chen/p/18384394 该文章描述了使用SRS实现音视频通话和共享桌面的经验。从最初使用nginx的RTMP到研究SRS和ZLMediaKit的过程,再到最终实现功能的详细步骤,涵盖了服务器配置、前后端技术及具体功能实现。作

Python 潮流周刊#67:uv 的重磅更新(摘要)

本周刊由 Python猫 出品,精心筛选国内外的 250+ 信息源,为你挑选最值得分享的文章、教程、开源项目、软件工具、播客和视频、热门话题等内容。愿景:帮助所有读者精进 Python 技术,并增长职业和副业的收入。 分享了 12 篇文章,12 个开源项目,全文 2000 字。 以下是本期摘要: 🦄文章&教程 ① uv:统一的 Python 打包工具 ② PyJWT 和 pytho

九泰智库 | 医械周刊- Vol.54

⚖️&nbsp;法规动态 国家药监局综合司发布医疗器械管理法草案征求意见稿 国家药监局综合司发布了《中华人民共和国医疗器械管理法(草案征求意见稿)》,公开征求意见,以加强医疗器械的管理并推动产业高质量发展。该草案共十一章190条,全面覆盖了医疗器械的研制、生产、经营、使用及监督管理等环节。重点提出了医疗器械创新、融资、审评审批、监督、编码、国际化等方面,旨在保障医疗器械安全有效,同时促进产

.NET周刊【8月第4期 2024-08-25】

国内文章 从控制台开始 关联 Win2D 和 WinUI 3 应用 https://www.cnblogs.com/lindexi/p/18378612 本文将告诉大家如何从最简单的控制台开始搭建,让 Win2D 和 WinUI 3 关联起来,让 Win2D 可以将内容渲染到 WinUI 3 应用上。 为何 Thread.Sleep 半毫秒和一毫秒等待时间差距如此之大 https://w

FuTalk设计周刊-Vol.071

#AI漫谈 热点捕手 1.Midjourney 网页版开放,提供了免费的使用额度 链接https://x.com/midjourney/status/1826305298560418171 2.Stability AI推出Stable Video 4D模型 Stability AI最新推出Stable Video 4D模型,支持多视角生成、4D模型生成等能力。SV4D能把一个普通的