Skip to main content

Python 3.10 新功能

Published Markdown
Part of seriesSoftware development

Python 最新版本 3.10 發佈了,這邊不會全部介紹,只想介紹自己覺得有意思的。

  • 允許使用 Union Type X|Y
  • 正式支援 match-case:之前 Python 都不支援其他語言有的 switch...case,現在終於支援了
  • with 支援使用 () 包含多個 context

Reference

  • https://www.python.org/downloads/release/python-3100/

About the author

  • I am not a programmer just a leaner. Writing JavaScript, Python, and Go and doing something on Kubernetes.

No comments yet. Be the first to comment.

Software development

Part 41 of 50

A series about software engineering

Up nextLogging 的最佳實踐Logging Best Practice

More from this blog