面向儿童的 Python

原文: PyCoder's Weekly - Issue #440

pycoder

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

In this ten part series, senior software engineer Kevin Thomas presents a kid-friendly comprehensive Python development tutorial utilizing a micro:bit development board. The GitHub repo contains all of the sample code as well as links to each tutorial in the series on LinkedIn. The first seven parts are published and the last three are coming soon!

(是也乎:

...Part 9: FUN With Talking Robots

嗯哼, 涉及模块一定也属于不存在空间中...

)

Last week we featured a scholarly article about NumPy that appeared in Nature. This article takes a look at why a scholarly article about a fifteen-year-old library just came out, and why it is actually quite timely.

This brand new PEP, which is still in draft mode, proposes adding support for syntactic macros to Python. Syntactic macros are compile-time functions that extend the language’s syntax without adding any new complexity to the language as a whole.

(是也乎:

为什么每次见 Macros 都想起那一系列经典动画片?

编译期函式, 这几乎强行要求 Python 编程必须上 IDE 了...

)

A big decision a developer has to make is what tool to use to write code? Would you like an editor that understands Python, and is there to help with suggestions, definitions, and analysis of your code? For many developers, its the free tool, Visual Studio Code. This week on the show, we have Savannah Ostrowski, program manager for the Python Language Server and Python in Visual Studio. We discuss Pylance, a new language server with fast, feature-rich language support for Python in VS Code.

(是也乎:

Podcast

程序媛来了. VSCode 团队分管 Python 的经理.

Pylance

基于 Pyright 是 M$ 原创 Python 静态分析器, 和珢神过过手的 Google 那个, 不知道谁强.

)

On October 5, about one year since the initial realease of Python 3.8, Python 3.9 will officially be released. This release contains interesting new features, and some significant removals from the language.

(是也乎:

也就是说 Py 3.9 之后, 才是真正的毫无 Py 2 残留版本? 那么, 对 Py 1 的残余是在 Py 2 那个版本中清除的

)

(是也乎:

芹菜都 v5 了? 没想到当年纯粹 logo 设计漂亮的模块, 现在变成盟主了.

)

(是也乎:

嘦 PyPy 还支持 Py 2.7 那么, Py 2 就没有消失的理由.

)

(是也乎:

但是, 竟然无法安装, 你能想象?

)

探讨/吐糟

Discussions

Does your definition of “enjoyable” allow for some occasional bashing-head-against-table moments?

(是也乎:

最可享语言?

英文抓马式讨论也不少, zhihu 前身...

)

A scientist needs both speed and ease-of-use.

(是也乎:

简单说, 如果銭给够, 值得.

)

文章/教程/嗯哼

Articles, Tutorials and Talks

Pygal is an overlooked library for creating interactive plots that can be turned into SVGs with an optimal resolution for printing or displaying on webpages. Learn how it works in this introductory tutorial.

(是也乎:

专注 SVG 格式的 Pygal , 还得看浏览器支持了...

关键是数据可视化的交互场景真的很多嘛?

)

Django applications are core structural elements of a Django project. In the latest addition to his “Understanding Django” series, Matt Layman explores how Django applications are composed and how to use them effectively.

In this step-by-step tutorial, you’ll learn how to use the Python return statement when writing functions. Additionally, you’ll cover some good programming practices related to the use of return. With this knowledge, you’ll be able to write readable, robust, and maintainable functions in Python.

(是也乎:

return

Py 中回返回的对象太任性了, 得约定好, 固定一种范式, 否则, 调试起来太容易出事儿...

)

As more and more Python developers are switching from Python 2 to Python 3, there are a number of Python 3 specific features that they might not be making use of. Even if you’ve been programming in Python 3 for a while, you might find something new in this list!

How could you visualize how well Gzip compression works on a given file? Would you be able to produce any interesting graphs? Maybe not, but it’s a fun exercise in experimental programming. As a bonus, you get an excuse to change io.DEFAULT_BUFFER_SIZE!

In this course, you’ll create a Flask application that lets users sign in using their Google login. You’ll learn about OAuth 2 and OpenID Connect and also find out how to implement some code to handle user session management.

(是也乎:

Login

好东西, 不过并不存在...

)

Are you using NamedTuple in your code? If you aren’t, learn what they are and why you should consider using them in this comprehensive tutorial.

(是也乎:

Py 各种数据结构是很好用, 但真实用起来总是差口气儿, 所以, 有各种魔改, 比如说可名元组:

>>> c = {"r": 50, "g": 205, "b": 50, "alpha": alpha}
>>> Color = namedtuple("Color", c)
>>> Color(**c)
Color(r=50, g=205, b=50, alpha=0)

当然也可以转化为其它类型:

>>> blue = Color(r=0, g=0, b=255, alpha=1.0)
>>> import json
>>> json.dumps(blue._asdict())
'{"r": 0, "g": 0, "b": 255, "alpha": 1.0}'

说穿了, 就是想编程时, 少写点儿东西而已.

)

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

问题在金融衍生品变化这么快, 对应模块包含的策略可用嘛?

如果不包含策略, 那么比手写节省了什么?

)

(是也乎:

PyTorch 叕一项关联作品...

)

(是也乎:

嗯哼? 用此模块, IDC 中批量升级时, 响起洪亮的音乐...

)

(是也乎:

SQLite 这么多年, 一直在稳定发展, 名声不显, 却真的好用.

)

📆🐍 活动/大会

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

DAMA

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

蟒营®编程思维提高班 Python版/13期已发布

时间规划:

  • 报名截止 2020.10.19
  • 正式开课 2020.10.25
  • 课程结束 2020.12.06

10.1 特价: 2642元/人

当期优惠: 10.10 前报名,再减 800元

  1. 老学员或是其它有效推荐, 再惠 500元
  2. 在校生, 再优惠 1000元
    • 出示学生证即可
  3. 复读 5折
  4. 组团:
    • 4人及以上(建议直接联系 蟒营®开绿色通道.)

(注意: 以上优惠政策不可叠加;-)

报名流程: 微信扫码报名→付学费→入微信群

reg13py

详情 => 蟒营®编程思维提高班 Python版/ 第13期

PS:


好文笔,感叹号年度配额: 1/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4152

RPP


Comments



蟒营®编程思维提高班 Python版/第14期 正在报名

精品小班/ 永久答疑

扫描报名: 101camp14py

蟒营®式 原创课程

theory101camp_v3

官网: py.101.camp


任何问题可先进入知识星球(免费)咨询:
FAQ

关注公众号, 持续获得相关各种嗯哼:
zoomquiet

追问

任何问题, 随时邮件提问可也:
askdama@googlegroups.com