Python 3.7.3是Python编程语言的一个稳定版本,发布于2019年6月12日。这个官方最新文档提供了全面的指南、参考手册和语言规范,旨在帮助开发者深入理解和熟练运用Python 3.7.3的特性。 Python是一种高级、解释型、交互式和面向对象的脚本语言。它的设计哲学强调代码的可读性和简洁的语法(尤其是使用空格缩进划分代码块,而非使用花括号或关键字)。Python 3.x系列是该语言的最新主要版本,与早期的Python 2.x有若干不兼容之处,但增加了许多新功能和改进。 在Python 3.7.3中,以下几个关键知识点值得学习: 1. **类型注解**:Python 3.5引入了类型注解,允许开发者为函数参数和返回值添加类型信息,提高代码的可读性和工具的静态分析能力。在Python 3.7中,类型注解已经被更广泛地接受和应用。 2. **异步IO**:Python 3.5引入了`asyncio`模块,支持异步编程,使得在单线程环境下可以进行高效的并发操作。在Python 3.7中,异步编程的语法更加完善,如`async with`和`async for`语句的引入。 3. **数据类(Data Classes)**:Python 3.7新增了`dataclasses`模块,简化了创建具有默认值和比较方法的数据容器类的过程,提高了开发效率。 4. **新的字典方法**:在Python 3.7中,字典实现了有序性,并新增了`|`(合并)、`&`(交集)、`^`(并集)等操作符,以及`popitem(last=False)`方法,增强了字典的操作便利性。 5. **__ walrus operator __(赋值运算符)**:Python 3.8引入的新特性,但在3.7中也可以预见其作用。`:=`运算符允许在条件表达式中进行赋值,简化代码。 6. **f-string**:Python 3.6引入的格式化字符串字面值,提供了一种更直观、更高效的字符串格式化方式。在3.7中,它已成为编写格式化字符串的标准选择。 7. **改进的垃圾回收**:Python 3.7在垃圾回收机制上进行了优化,包括对循环引用的处理,使得内存管理更加高效。 8. **文件系统变更通知**:通过`os.watch`,Python 3.7开始支持监视文件系统的变更,这在构建实时监控和自动构建工具时非常有用。 9. **更多标准库的增强**:例如`csv`模块的性能提升,`json`模块增加了对`async`的支持,以及`argparse`模块的改进等。 这个英文PDF文档包含了所有这些内容的详细解释,适合初学者和有经验的开发者作为参考。每个PDF文件可能对应特定的主题,如语言参考、标准库、高级特性等,通过自带的书签可以方便地导航到所需的部分。阅读这份文档,可以帮助你更好地掌握Python 3.7.3的精髓,提升编程技能。
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![exe](https://img-home.csdnimg.cn/images/20210720083343.png)
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PDF.png)
- 1
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/c95158c70fd04a48bb70fa9242a5d06a_sinat_34707539.jpg!1)
- 粉丝: 78
- 资源: 26
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)