iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >Python 3.7.0 正式发布,官方
  • 505
分享到

Python 3.7.0 正式发布,官方

正式发布官方Python 2023-01-31 02:01:40 505人浏览 薄情痞子

Python 官方文档:入门教程 => 点击学习

摘要

(点击上方蓝字,快速关注我们)python开发者(id:pythonCoder)编译整理Python 官网于 6 月 27 日发布 v3.7.0 的更新说明。v3.7.0 是最近比较大的更新。此次发布包含了诸多新特性和优化。官网对新特性

(点击上方蓝字,快速关注我们)


python开发者(id:pythonCoder)编译整理


Python 官网于 6 月 27 日发布 v3.7.0 的更新说明。v3.7.0 是最近比较大的更新。此次发布包含了诸多新特性和优化


官网对新特性和优化的汇总:


新语法特性:

  • PEP 563, postponed evaluation of type annotations.


向后不兼容的语法更改:

  • async 和 await 现在是保留关键字


新的库模块:

  • contextvars: PEP 567 – Context Variables

  • dataclasses: PEP 557 – Data Classes

  • importlib.resources


新的 built-in 特性:

  • PEP 553, 新函数 breakpoint() 


Python 数据模型改进:

  • PEP 562, customization of access to module attributes.(访问模块属性,可以定制了)

  • PEP 560, core support for typing module and generic types.

  • the insertion-order preservation nature of dict objects has been declared to be an official part of the Python language spec.


标准库中的重要改进:

  • The asyncio module has received new features, significant usability and perfORMance improvements. (asyncio 模块已经获得了新功能,显着的可用性和性能改进。)

  • The time module gained support for functions with nanosecond resolution. (time 模块获得了对纳秒级分辨率功能的支持)


CPython 实现的改进:

  • Avoiding the use of ASCII as a default text encoding: 取消 ASCII 作为默认文本编码

    • PEP 538, legacy C locale coercion

    • PEP 540, forced UTF-8 runtime mode

  • PEP 552, deterministic .pycs

  • the new development runtime mode

  • PEP 565, improved DeprecationWarning handling


C API 改进:

  • PEP 539, new C api for thread-local storage


文档改进:

  • Python 官方文档的翻译,新增日文版、法语版和韩语版;

640?wx_fmt=png



其他详情,请参阅 Python 官网说明:

https://docs.python.org/3.7/whatsnew/3.7.html



看完本文有收获?请转发分享给更多人

关注「Python开发者」,提升Python技能

640?wx_fmt=png

--结束END--

本文标题: Python 3.7.0 正式发布,官方

本文链接: https://www.lsjlt.com/news/185351.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作