Python3 Standard Library

原文地址:https://docs.python.org/3/library/index.html







  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The Python 3 Standard Library by Example (Developer's Library) by Doug Hellmann English | 12 Jun. 2017 | ASIN: B072QZZDV7 | 1456 Pages | AZW3 | 199.27 MB This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book. Master the Powerful Python 3 Standard Library through Real Code Examples “The genius of Doug’s approach is that with 15 minutes per week, any motivated programmer can learn the Python Standard Library. Doug’s guided tour will help you flip the switch to fully power-up Python’s batteries.” –Raymond Hettinger, Distinguished Python Core Developer The Python 3 Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internet–all extensively tested and ready to jump-start application development. Now, Python expert Doug Hellmann introduces every major area of the Python 3.x library through concise source code and output examples. Hellmann’s examples fully demonstrate each feature and are designed for easy learning and reuse. You’ll find practical code for working with text, data structures, algorithms, dates/times, math, the file system, persistence, data exchange, compression, archiving, crypto, processes/threads, networking, Internet capabilities, email, developer and language tools, the runtime, packages, and more. Each section fully covers one module, with links to additional resources, making this book an ideal tutorial and reference. The Python 3 Standard Library by Example introduces Python 3.x’s new libraries, significant functionality changes, and new layout and naming conventions. Hellmann also provides expert porting guidance for moving code from 2.x Python standard library modules to their Python 3.x equivalents. Manipulate text with string, textwrap, re (regular expressions), and difflib Use data structures: enum, collections, array, heapq, queue, struct, copy, and more Implement algorithms elegantly and concisely with functools, itertools, and contextlib Handle dates/times and advanced mathematical tasks Archive and data compression Understand data exchange and persistence, including json, dbm, and sqlite Sign and verify messages cryptographically Manage concurrent operations with processes and threads Test, debug, compile, profile, language, import, and package tools Control interaction at runtime with interpreters or the environment
Python 3标准库是Python编程语言自带的一组模块和功能,能够提供广泛而强大的功能支持。这些模块和功能在Python安装后就可以直接使用,无需额外安装。 Python 3标准库包含众多模块,用于处理各种任务和问题。其中包括: 1. 常用数据处理模块:例如`math`和`statistics`,提供基本的数学和统计操作,如求平方根、对数、平均值等。 2. 文件和目录处理模块:例如`os`和`shutil`,用于操作文件和目录,如创建、复制、删除文件或目录等操作。 3. 网络和通信模块:例如`socket`和`urllib`,用于进行网络通信和访问网络资源,如发送HTTP请求、解析URL等。 4. 时间和日期处理模块:例如`datetime`和`time`,提供了各种处理时间和日期的函数和类,如获取当前时间、格式化时间和日期等。 5. 数据序列化和存储模块:例如`pickle`和`json`,用于将数据转换为可存储或传输的格式,如将Python对象序列化为二进制或JSON格式。 6. 图形用户界面模块:例如`tkinter`,用于创建图形用户界面,实现和用户的交互。 7. 测试和调试模块:例如`unittest`和`pdb`,用于编写和运行测试用例,以及调试程序。 8. 数据库访问模块:例如`sqlite3`和`mysql.connector`,用于连接和操作数据库,如执行SQL询、插入、更新等操作。 这只是Python 3标准库的一部分,还有很多其他模块和功能没有提及。Python 3标准库作为Python的内建功能,提供了丰富而强大的工具和功能,使得开发者能够更加高效地进行开发和问题解决。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值