原文: PyCoder's Weekly - Issue #418html
Python 2 最後的發佈標誌叕一個時代的終結python
The final version of Python 2 has been released. As the Python community looks forward to the new era, Ryan Donovan from the Stack Overflow Blog takes some time to reflect on the transition and points out that, while support for Python 2 from official channels may be gone, the language isn’t dead. In fact, there’s reason to believe it will live on for decades to come.git
(是也乎:
github
再次: 不會的, Python 2.x 足以用到下個10年...web
)微信
Python 3.9 is scheduled for release on May 10, 2020, and it’s packed full of new goodies. Explore these new features in this overview by Martin Heinz, including new dict operators, updates to the math module, new string methods, a functools.ToplogicalSorter class, and more!ide
(是也乎:
工具
實話, 並不想知道...gitlab
一個語言不是靠追加愈來愈多特性存活的...
)
Python pickle 模塊: 如何在 Python 中保存對象
In this tutorial, you’ll learn how you can use the Python pickle module to convert your objects into a stream of bytes that can be saved to a disk or sent over a network. You’ll also learn the security implications of using this process on objects from an untrusted source.
(是也乎:
pickle 絕對是 Python 內建模塊中最迷人的一個,
誰都忍不住溢用她...
)
As part of PyCon US 2020, the Python Steering Council will record a Q&A. They are soliciting questions from the community, so here’s your chance to get your burning questions answered!
(是也乎:
很認真, 也很無奈...
)
This course is a reference guide to common Python application layouts and project structures for command-line applications, web applications, and more.
(是也乎:
的確, Python 程序其實,很是 八股文的...
輸入->處理->輸出,
沒了...
)
Discussions
It’s not that professional programmers never fail. They’ve just learned how to deal with failure and recover from it—most of the time, anyway. What coping mechanisms have you come up with?
(是也乎:
這不就是調試嘛?
製造失敗來檢驗正確.
)
Lots of great advice for new Python programmers in this thread!
(是也乎:
哭述...無盡的...
其實, 最基礎的, 一年之內能夠用 Python 賺到錢, 那麼一切目標都達到了.
)
Articles, Tutorials and Talks
Quick quiz: how many numeric data types are there in Python? If you answered 「two, duh」 then you might be surprised to learn that there are actually four! In addition to int and float, the fractions and decimal standard library modules implement data types used to represent fraction and decimal numbers exactly. Learn about all of Python’s numeric data types, their strengths and weakness, and how to choose the right one in this short-but-informative article from Moshe Zadka.
在堅實的基礎上構建: 確保可複用的Docker構建Python
Docker is a popular tool for distributing applications bundled with their environments. It’s often sold as a cure to the 「it worked on my machine」 conundrum, but you’re not alone if you’ve found this to be a bit oversold. The issue isn’t with Docker, though. Chances are your images aren’t completely reproducible. In this tutorial, you’ll learn some best practices for creating reproducible Docker builds.
Imagine you’re maintaining an open-source Python package and you’re going to release a new version with breaking changes. You warn users about those changes in documentation and even blast the info on social media channels. But wouldn’t it be great if you could warn users right in their terminal as their using your tool? Well, with Python’s warnings module, you can! How are warnings different from Python exceptions? Learn how to send and filter warnings, and why you would want to do so.
Users love being able to configure an application. But dealing with user configuration means parsing untrusted input, validating that input, and figuring out how to access it safely in all the layers of your applications. Python has a rich configuration ecosystem. Lots of articles focus on how to use various configuration formats in your Python programs but skip out on the finer details of how and when configuration should be validated. This tutorial fills in some of those gaps.
(是也乎:
又來...配置的確是軟件工程中比較糾結的一個方面,
不過, 用好 Python 自己就足以在配置上很是自在了;
關鍵是剋制. 嫑在配置文件中包含過多計算/斷定/攝取/... 之類行爲.
)
Have you heard about Python’s set data type? A set is an unordered collection of distinct objects that support fast membership tests and can be used to remove duplicates from a sequence. Learn all about this handy data type in this beginner-friendly article from Mike Driscoll.
In this tutorial, you’ll get started with Pandas DataFrames, which are powerful and widely used two-dimensional data structures. You’ll learn how to perform basic operations with data, handle missing values, work with time-series data, and visualize data from a Pandas DataFrame.
(是也乎:
使用 Pandas 最大的技巧, 可能就是別怕浪費內存,
能複製時, 必定要複製, 以避免糾纏
)
This article explores rate limiting algorithms using Python and Redis, starting from a naive approach and culminate at an advanced one called Generic Cell Rate Algorithm (GCRA).
「We take an email and verify the the DKIM-Signature step by step using Python. We also take care about the signing itself (RSA). Source code included.」
(是也乎:
by hand 就是從頭擼, 將 郵件的 DKIM 簽名詳細刷了一遍
)
用 NumPy 和 Pandas 在 Python 中建立相關矩陣
In this tutorial, you’ll learn how to create a correlation matrix in Python with NumPy and Pandas. Plus upper & lower triangular (tables).
用 Docker 和 GitLab 將 Django 持續部署到 AWS EC2
(是也乎:
gitlab 在終年陪跑狀況下, 終於發現了本身最大的優點,
開始增強 CI/CD 方面的功能,
因此, 你們都來了...
)
(是也乎:
嗯哼? 堅持了8年, 週刊終於有愈來愈多來自社區的自發推薦了...
不容易.
)
(是也乎:
嵌入在 CI/CD 過程當中就很香了...
)
Interesting Projects, Tools and Libraries, Projects & Code
(是也乎:
爲了證實這一斷言:
Python is Lisp with syntactic sugar and Lisp is Forth with syntactic sugar.
因而發現了叕一個新語言;
Forth 是比 Lisp 更加極端的一門小衆開發語言.
這樣的代碼:
fib <- fun[i]: if i < 3: return(1) return(fib(x - 1) + fib(x - 2))
也能夠這麼表達:
F' [ pick1 pushi: 3 < [ drop1 1 return ] if pick1 1 - fib pick2 - fib + s21 drop1 return ] bind: fib 'F
)
twitter-ticker-tape: Raspberry Pi 經過收據打印機讀取推文
(是也乎:
自動讀取Twitter 並打印成發票以便晚上慢慢讀...
)
(是也乎:
全新語言, 專一高效完成物理引擎/粒子系統/...等等須要海量計算的動畫自動生成....
已經有豐富的案例, 是的國貨.
基於 Python 深度定製.
)
(是也乎:
這個很牛了...GPLv3;
能夠拿來做各類好玩兒的東西了.
)
3d-photo-inpainting: 使用上下文感知的分層深度修補進行3D攝影
(是也乎:
從 3D 空間的理解上自動化處理照片,
華人主力團隊成果, PyTorch 爲核心.
)
Events, MeetUp 真的是全球線下活動組織中心
⋅ Montréal-Python Online Hackathon
(( ̄▽ ̄):
COVID-19 威能之下,
大會都線上了..連 Hackathon 也在線了...
但是沒有一塊兒熬夜的小夥伴在身邊, 這種連續開發就沒味道了哪...
)
❤️ Happy Pythonic ;-(
大媽私人無責任播報
)
101camp8py 已經開始報名(能開發票 ;-)
課程規劃: 報名截止 2020.5.24 正式開課 2020.5.31 課程結束 2020.7.12
詳情 => 蟒營™ Python 入門班第8期
NN 3998
好文筆,感嘆號年度配額: 1/3
投稿/反饋郵箱:
askdama@googlegroups.com
(郵件列表地址,
當成正常郵件發送郵件就好, 不用註冊, 不用翻越...)
ZoomQuiet/大媽
就是四處 是也乎,( ̄▽ ̄)
的那個大媽:
私自嗯哼: ZoomQuiet (訂閱號: ZoomQuiet42) 公開課程: 蟒營 (訂閱號: Mainium) 歷史吐糟: Chaos42 (訂閱號 PythoniCamp) as 核心組織者: PyChina (訂閱號: PyChinaOrg) 本地社區: GDG珠海 (訂閱號: GDG-ZhuHai) TFUG珠海 (訂閱號: ZH_TFUG)
蟒營™Python入門班 第8期 已經開始報名:
(明確: 能開發票)
蟒營™原創課程服務:
伴你重享學習樂趣
蟒營™:Py入門班
Powered by: Zoom.Quiet / 昧因科技®
本文由博客一文多發平臺 OpenWrite 發佈;