热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

python标准库模块教程_《python标准库》pdf(核心模块使用教程)

【实例简介】【实例截图】【核心代码】1.核心模块o1.1.介绍o1.2.__builtin__模块o1.3.exceptions模块o1.4.os模块o1.5.os.path模块o

【实例简介】

【实例截图】

【核心代码】

1. 核心模块

o 1.1. 介绍

o 1.2. _ _builtin_ _ 模块

o 1.3. exceptions 模块

o 1.4. os 模块

o 1.5. os.path 模块

o 1.6. stat 模块

o 1.7. string 模块

o 1.8. re 模块

o 1.9. math 模块

o 1.10. cmath 模块

o 1.11. operator 模块

o 1.12. copy 模块

o 1.13. sys 模块

o 1.14. atexit 模块

o 1.15. time 模块

o 1.16. types 模块

o 1.17. gc 模块

2. 更多标准模块

o 2.1. 概览

o 2.2. fileinput 模块

o 2.3. shutil 模块

o 2.4. tempfile 模块

o 2.5. StringIO 模块

o 2.6. cStringIO 模块

o 2.7. mmap 模块

o 2.8. UserDict 模块

o 2.9. UserList 模块

o 2.10. UserString 模块

o 2.11. traceback 模块

o 2.12. errno 模块

o 2.13. getopt 模块

o 2.14. getpass 模块

o 2.15. glob 模块

o 2.16. fnmatch 模块

o 2.17. random 模块

o 2.18. whrandom 模块

o 2.19. md5 模块

o 2.20. sha 模块

o 2.21. crypt 模块

o 2.22. rotor 模块

o 2.23. zlib 模块

o 2.24. code 模块

3. 线程和进程

o 3.1. 概览

o 3.2. threading 模块

o 3.3. Queue 模块

o 3.4. thread 模块

o 3.5. commands 模块

o 3.6. pipes 模块

o 3.7. popen2 模块

o 3.8. signal 模块

4. 数据表示

o 4.1. 概览

o 4.2. array 模块

o 4.3. struct 模块

o 4.4. xdrlib 模块

o 4.5. marshal 模块

o 4.6. pickle 模块

o 4.7. cPickle 模块

o 4.8. copy_reg 模块

o 4.9. pprint 模块

o 4.10. repr 模块

o 4.11. base64 模块

o 4.12. binhex 模块

o 4.13. quopri 模块

o 4.14. uu 模块

o 4.15. binascii 模块

5. 文件格式

o 5.1. 概览

o 5.2. xmllib 模块

o 5.3. xml.parsers.expat 模块

o 5.4. sgmllib 模块

o 5.5. htmllib 模块

o 5.6. htmlentitydefs 模块

o 5.7. formatter 模块

o 5.8. ConfigParser 模块

o 5.9. netrc 模块

o 5.10. shlex 模块

o 5.11. zipfile 模块

o 5.12. gzip 模块

6. 邮件和新闻消息处理

o 6.1. 概览

o 6.2. rfc822 模块

o 6.3. mimetools 模块

o 6.4. MimeWriter 模块

o 6.5. mailbox 模块

o 6.6. mailcap 模块

o 6.7. mimetypes 模块

o 6.8. packmail 模块

o 6.9. mimify 模块

o 6.10. multifile 模块

7. 网络协议

o 7.1. 概览

o 7.2. socket 模块

o 7.3. select 模块

o 7.4. asyncore 模块

o 7.5. asynchat 模块

o 7.6. urllib 模块

o 7.7. urlparse 模块

o 7.8. COOKIE 模块

o 7.9. robotparser 模块

o 7.10. ftplib

o 8.1. locale 模块

o 8.2. unicodedata 模块

o 8.3. ucnhash 模块

9. 多媒体相关模块

o 9.1. 概览

o 9.2. imghdr 模块

o 9.3. sndhdr 模块

o 9.4. whatsound 模块

o 9.5. aifc 模块

o 9.6. sunau 模块

o 9.7. sunaudio 模块

o 9.8. wave 模块

o 9.9. audiodev 模块

o 9.10. winsound 模块

10.数据储存

o 10.1. 概览

o 10.2. anydbm 模块

o 10.3. whichdb 模块

o 10.4. shelve 模块

o 10.5. dbhash 模块

o 10.6. dbm 模块

o 10.7. dumbdbm 模块

o 10.8. gdbm 模块

11.工具和实用程序

o 11.1. dis 模块

o 11.2. pdb 模块

o 11.3. bdb 模块

o 11.4. profile 模块

o 11.5. pstats 模块

o 11.6. tabnanny 模块

12.其他模块

o 12.1. 概览

o 12.2. fcntl 模块

o 12.3. pwd 模块

o 12.4. grp 模块

o 12.5. nis 模块

o 12.6. curses 模块

o 12.7. termios 模块

o 12.8. tty 模块

o 12.9. resource 模块

o 12.10. syslog 模块

o 12.11. msvcrt 模块

o 12.12. nt 模块

o 12.13. _winreg 模块

o 12.14. posix 模块

13.执行支持模块

o 13.1. dospath 模块

o 13.2. macpath 模块

o 13.3. ntpath 模块

o 13.4. posixpath 模块

o 13.5. strop 模块

o 13.6. imp 模块

o 13.7. new 模块

o 13.8. pre 模块

o 13.9. sre 模块

o 13.10. py_compile 模块

o 13.11. compileall 模块

o 13.12. ihooks 模块

o 13.13. linecache 模块

o 13.14. macurl2path 模块

o 13.15. nturl2path 模块

o 13.16. tokenize 模块

o 13.17. keyword 模块

o 13.18. parser 模块

o 13.19. symbol 模块

o 13.20. token 模块

14.其他模块

o 14.1. 概览

o 14.2. pyclbr 模块

o 14.3. filecmp 模块

o 14.4. cmd 模块

o 14.5. rexec 模块

o 14.6. Bastion 模块

o 14.7. readline 模块

o 14.8. rlcompleter 模块

o 14.9. statvfs 模块

o 14.10. calendar 模块

o 14.11. sched 模块

o 14.12. statcache 模块

o 14.13. grep 模块

o 14.14. dircache 模块

o 14.15. dircmp 模块

o 14.16. cmp 模块

o 14.17. cmpcache 模块

o 14.18. util 模块

o 14.19. soundex 模块

o 14.20. timing 模块

o 14.21. posixfile 模块

o 14.22. bisect 模块

o 14.23. knee 模块

o 14.24. tzparse 模块

o 14.25. regex 模块

o 14.26. regsub 模块

o 14.27. reconvert 模块

o 14.28. regex_syntax 模块

o 14.29. find 模块

15.Py 2.0 后新增模块

16.后记



推荐阅读
  • Java容器中的compareto方法排序原理解析
    本文从源码解析Java容器中的compareto方法的排序原理,讲解了在使用数组存储数据时的限制以及存储效率的问题。同时提到了Redis的五大数据结构和list、set等知识点,回忆了作者大学时代的Java学习经历。文章以作者做的思维导图作为目录,展示了整个讲解过程。 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • 个人学习使用:谨慎参考1Client类importcom.thoughtworks.gauge.Step;importcom.thoughtworks.gauge.T ... [详细]
  • 本文介绍了南邮ctf-web的writeup,包括签到题和md5 collision。在CTF比赛和渗透测试中,可以通过查看源代码、代码注释、页面隐藏元素、超链接和HTTP响应头部来寻找flag或提示信息。利用PHP弱类型,可以发现md5('QNKCDZO')='0e830400451993494058024219903391'和md5('240610708')='0e462097431906509019562988736854'。 ... [详细]
  • 前景:当UI一个查询条件为多项选择,或录入多个条件的时候,比如查询所有名称里面包含以下动态条件,需要模糊查询里面每一项时比如是这样一个数组条件:newstring[]{兴业银行, ... [详细]
  • Imtryingtofigureoutawaytogeneratetorrentfilesfromabucket,usingtheAWSSDKforGo.我正 ... [详细]
  • 本文介绍了在iOS开发中使用UITextField实现字符限制的方法,包括利用代理方法和使用BNTextField-Limit库的实现策略。通过这些方法,开发者可以方便地限制UITextField的字符个数和输入规则。 ... [详细]
  • 重入锁(ReentrantLock)学习及实现原理
    本文介绍了重入锁(ReentrantLock)的学习及实现原理。在学习synchronized的基础上,重入锁提供了更多的灵活性和功能。文章详细介绍了重入锁的特性、使用方法和实现原理,并提供了类图和测试代码供读者参考。重入锁支持重入和公平与非公平两种实现方式,通过对比和分析,读者可以更好地理解和应用重入锁。 ... [详细]
  • 图像因存在错误而无法显示 ... [详细]
  • Android自定义控件绘图篇之Paint函数大汇总
    本文介绍了Android自定义控件绘图篇中的Paint函数大汇总,包括重置画笔、设置颜色、设置透明度、设置样式、设置宽度、设置抗锯齿等功能。通过学习这些函数,可以更好地掌握Paint的用法。 ... [详细]
  • 开源Keras Faster RCNN模型介绍及代码结构解析
    本文介绍了开源Keras Faster RCNN模型的环境需求和代码结构,包括FasterRCNN源码解析、RPN与classifier定义、data_generators.py文件的功能以及损失计算。同时提供了该模型的开源地址和安装所需的库。 ... [详细]
  • 本文介绍了在Android开发中使用软引用和弱引用的应用。如果一个对象只具有软引用,那么只有在内存不够的情况下才会被回收,可以用来实现内存敏感的高速缓存;而如果一个对象只具有弱引用,不管内存是否足够,都会被垃圾回收器回收。软引用和弱引用还可以与引用队列联合使用,当被引用的对象被回收时,会将引用加入到关联的引用队列中。软引用和弱引用的根本区别在于生命周期的长短,弱引用的对象可能随时被回收,而软引用的对象只有在内存不够时才会被回收。 ... [详细]
  • STL迭代器的种类及其功能介绍
    本文介绍了标准模板库(STL)定义的五种迭代器的种类和功能。通过图表展示了这几种迭代器之间的关系,并详细描述了各个迭代器的功能和使用方法。其中,输入迭代器用于从容器中读取元素,输出迭代器用于向容器中写入元素,正向迭代器是输入迭代器和输出迭代器的组合。本文的目的是帮助读者更好地理解STL迭代器的使用方法和特点。 ... [详细]
  • [翻译]PyCairo指南裁剪和masking
    裁剪和masking在PyCairo指南的这个部分,我么将讨论裁剪和masking操作。裁剪裁剪就是将图形的绘制限定在一定的区域内。这样做有一些效率的因素࿰ ... [详细]
  • 一、死锁现象与递归锁进程也是有死锁的所谓死锁:是指两个或两个以上的进程或线程在执行过程中,因争夺资源而造成的一种互相等待的现象,若无外力作 ... [详细]
author-avatar
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有