更多课程 选择中心


Python培训

400-111-8989

python新资讯:拥有很多新改进的python3.7.0版本正式发布了...

  • 发布:Python培训
  • 来源:Python开发者
  • 时间:2018-06-28 15:27

python官网已于2018年6月27日在官网正式发布了v3.7.0的更新说明,是近期比较大的一次更新,增加了诸多新特性,也对原有内容作了诸多优化, 想知道都是什么吗?快来随今天的python资讯了解一下吧:

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 官方文档的翻译,新增日文版、法语版和韩语版;

python新资讯:拥有很多新改进的python3.7.0版本正式发布了...

感谢您的阅读,python v3.7.0新的特性你都了解了吗?一定要记住哦,这样未来使用的时候才能更方便快捷哦!更多python新资讯,欢迎关注达内python培训

预约申请免费试听课

填写下面表单即可预约申请免费试听! 怕学不会?助教全程陪读,随时解惑!担心就业?一地学习,可全国推荐就业!

上一篇:python人工智能被列为新工科专业,填志愿你又多了一个选择!
下一篇:python领域的领军企业带来的开源神库,python化了...

达内python培训机构就业喜报,用事实告诉你月薪过万不是梦!

python资讯|招聘AI人才开出4000万年薪,真的值吗?

你想自学python语言,因为它是黑客语言?

未来有两种人,会Python的和不懂Python的小学生?

  • 扫码领取资料

    回复关键字:视频资料

    免费领取 达内课程视频学习资料

Copyright © 2023 Tedu.cn All Rights Reserved 京ICP备08000853号-56 京公网安备 11010802029508号 达内时代科技集团有限公司 版权所有

选择城市和中心
黑龙江省

吉林省

河北省

湖南省

贵州省

云南省

广西省

海南省