Skip to main content
 Web开发网 » 编程语言 » Python语言

python3.4与python3.6有哪些区别?

2021年11月28日8460百度已收录

python现在出到3.4 alpha版本

与3.3的区别在于:

Python 3.4 includes a range of improvements of the 3.x series, including hundreds of small improvements and bug fixes. Major new features and changes in the 3.4 release series so far include:

PEP 435, a standardized "enum" module 增加“enum”模块

PEP 442, improved semantics for object finalization 改进对象销毁的句法

PEP 443, adding single-dispatch generic functions to the standard library 将泛型函数加到标准库中

PEP 445, a new C API for implementing custom memory allocators 提供一个c语言的api用来开辟内存块。

3.4 3.5的主要区别,简列一下

-新增异步操作语法async 和await

-新增矩阵乘法操作符 a@b

-新增序列发生器的解包语法

-新增对类型的注释语法

-新增对zip压缩后的python模块包的支持

-新增的字节和字节数组的格式化支持和16进制输出.

还有一些小改动

python3.4与python3.6有哪些区别?  python3 第1张

python3.4与python3.6有哪些区别?  python3 第2张

python3.4与python3.6有哪些区别?  python3 第3张

评论列表暂无评论
发表评论
微信