My_Study_Python
latest
基础库
1. 环境准备
1.1. 安装python
1.2. ipython的安装
1.3. ipython测试
2. 内建函数
2.1. 常用内置函数
2.1.1. abs(x)
2.1.2. all(iterable)
2.1.3. any(iterable)
2.1.4. bool(x)
2.1.5. callable(object)
2.1.6. chr(i)
2.1.7. classmethod
2.1.8. delattr(object,name)
2.1.9. dict(**kwarg)
2.1.10. dir(x)
2.1.11. enumerate(iterable, start=0)
2.1.12. eval(expression, globals=None, locals=None)
2.1.13. float(x)
2.1.14. getattr(object, name[, default])
2.1.15. hasattr(object, name)
2.1.16. hex(x)
2.1.17. input(prompt)
2.1.18. isinstance(object,classinfo)
2.1.19. issubclass(class, classinfo)
2.1.20. iter(object[, sentinel])
2.1.21. len(x)
2.1.22. open(file, mode=’r’, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)
2.1.23. powpow(x, y[, z])
2.1.24. range(start,stop,step)
2.1.25. repr(object)
2.1.26. reversed(seq)
2.1.27. round(number[, ndigits])
2.1.28. setattr(object,name,value)
2.1.29. class slice(start, stop[, step])
2.1.30. sorted(iterable, *, key=None, reverse=False)
2.1.31. @staticmethod
2.1.32. sum(iterable[, start])
2.1.33. super([type[, object-or-type]])
2.1.34. tuple(iterable)
2.1.35. type(object)
2.1.36. zip(*iterables)
3. 内置常量
4. 内置类型
4.1. 真值测试
4.2. boolean操作符
4.3. 比较操作符号
4.4. 数据类型int,float,complex
4.5. 数据类型 list, tuple, range
4.5.1. list
4.5.2. Tuples
4.5.3. Ranges
4.5.4. Text Sequence Type - str
4.5.5. String Methods
4.5.6. printf
4.6. Binary Sequence Types — bytes, bytearray, memoryview
4.6.1. bytes
4.6.2. bytearray
4.6.3. memoryview
4.7. Set Types — set, frozenset
4.7.1. Mapping Types — dict
5. 内置异常
6. 文本处理
6.1. string
6.1.1. string常量
6.1.2. 格式化样例
6.1.3. 模板字符串
6.2. re
6.2.1. 模块内容
6.2.2. 正则表达式对象
6.2.3. 匹配对象
6.3. difflib
6.4. textwrap
6.5. unicodedata
6.6. stringprep
6.7. readline
6.8. rlcompleter
7. 二进制处理
7.1. struct
7.1.1. 主要函数
7.2. codecs
8. 数据类型
8.1. datetime
8.1.1. timedelta
8.1.2. date
8.1.3. datetime
8.1.4. time
8.1.5. 格式控制
8.2. calendar
8.3. collectons
8.3.1. ChainMap
8.3.2. Counter
8.3.3. deque
8.3.4. defaultdict
8.3.5. namedtuple
8.3.6. OrderedDict
8.4. collections.abc
8.5. heapq
8.6. bisect
8.7. array
8.8. weakref
8.9. types
8.10. copy
8.11. pprint
8.12. reprlib
8.13. enum
8.13.1. IntEnum
8.13.2. IntFlag
8.14. Flag
9. 数值模块
9.1. numbers
9.2. math
9.3. cmath
9.4. decimal
9.5. fractions
9.6. random
9.7. statistics
10. 函数式编程模块
10.1. itertools
10.2. functools
10.3. operator
11. 文件和目录访问
11.1. pathlib
11.1.1. 基本使用
11.1.2. pure路径
11.1.3. Concrete路径
11.2. os.path
11.3. fileinput
11.4. stat
11.5. filecmp
11.6. tempfile
11.7. glob
11.8. fnmatch
11.9. linecache
11.10. shutil
11.11. macpath
12. 数据持久化
12.1. pickle
12.2. copyreg
12.3. shelve
12.4. marshal
12.5. dbm
12.6. sqllite
13. 数据压缩和归档
13.1. zlib
13.2. gzip
13.3. bz2
13.4. lzma
13.5. zipfile
13.6. tarfile
14. 文件格式
14.1. csv
14.1.1. csv.writer(csvfile, dialect=’excel’, **fmtparams)
14.1.2. csv.reader(csvfile, dialect=’excel’, **fmtparams)
14.1.3. csv.DictWriter(f, fieldnames, restval=’’, extrasaction=’raise’, dialect=’excel’, *args, **kwds)
14.1.4. csv.reader(csvfile, dialect=’excel’, **fmtparams)
14.2. configparser
14.3. netrc
14.4. xdrlib
14.5. plistlib
15. 加密服务
15.1. hashlib
15.2. hmac
15.3. secrets
16. 通用操作系统服务
16.1. os
16.1.1. 文件名,命令行参数,环境变量
16.2. io
16.2.1. io入门样例
16.2.2. 主要先关类和主要方法
16.3. time
16.4. argparse
16.4.1. 快速入门样例
16.4.2. ArgumentParser 对象
16.4.2.1. prog
16.4.2.2. usage
16.4.2.3. description
16.4.2.4. epilog
16.4.2.5. parents
16.4.2.6. formatter_class
16.4.2.7. prefix_char
16.4.2.8. fromfile_prefix_chars
16.4.2.9. default
16.4.2.10. allow_abbrev
16.4.2.11. conflict_handler
16.4.2.12. add_help
16.4.3. add_argument() 方法
16.4.3.1. name
16.4.3.2. action
16.4.3.3. nargs
16.4.3.4. const
16.4.3.5. default
16.4.3.6. type
16.4.3.7. choices
16.4.3.8. required
16.4.3.9. help
16.4.3.10. metavar
16.4.3.11. dest
16.4.4. parse_args() 方法
16.4.5. 其他功能
16.4.5.1. 子命令
16.4.5.2. 参数组
16.4.5.3. 强制组
16.4.5.4. 设置默认值
16.4.6. 案例
16.4.6.1. 案例1
16.4.6.2. 案例2
16.5. getopt
16.5.1. 快速入门样例
16.6. logging
16.6.1. logging.Logger
16.6.2. logging.Handler
16.6.3. logging.Formatter
16.6.4. logging.Filter
16.6.5. logging.LogRecord
16.6.6. 简单使用
16.7. logging.Config
16.7.1. logging.config.dictConfig
16.7.2. logging.config.fileConfig
16.7.3. logging.config.listen
16.7.4. 字典配置细节
16.8. logging.Handlers
16.8.1. logging.StreamHandler
16.8.2. logging.FileHandler
16.8.3. logging.NullHandler
16.8.4. WatchedFileHandler
16.8.5. BaseRotatingHandler
16.8.6. RotatingFileHandler
16.8.7. TimedRotatingFileHandler
16.8.8. SocketHandler
16.8.9. DatagramHandler
16.8.10. SysLogHandler
16.8.11. NTEventLogHandler
16.8.12. SMTPHandler
16.8.13. logging.handlers.BufferingHandler
16.8.14. logging.handlers.MemoryHandler
16.8.15. HTTPHandler
16.8.16. QueueHandler
16.9. getpass
17. 并发执行
17.1. threading
17.1.1. threading.Thread
17.1.2. threading.Lock
17.1.3. threading.RLock
17.1.4. threading.Condition
17.1.5. threading.Event
17.1.6. threading.Timer
17.1.7. threading.Barrier
17.2. multiprocessing
17.3. multiprocessing.Process
17.4. multiprocessing.Process
17.5. multiprocessing.Queue
17.6. multiprocessing.Queue
17.7. multiprocessing.JoinableQueue
17.8. multiprocessing.connection.Connection
17.8.1. 共享对象
17.8.2. 进程管理者
18. 进程通信和网络
19. 网络数据处理
20. 结构化文本文档处理工具
My_Study_Python
Docs
»
我自己的python学习笔记
Edit on GitHub
Next
我自己的python学习笔记
¶
基础库
1. 环境准备
1.1. 安装python
1.2. ipython的安装
1.3. ipython测试
2. 内建函数
2.1. 常用内置函数
3. 内置常量
4. 内置类型
4.1. 真值测试
4.2. boolean操作符
4.3. 比较操作符号
4.4. 数据类型int,float,complex
4.5. 数据类型 list, tuple, range
4.6. Binary Sequence Types — bytes, bytearray, memoryview
4.7. Set Types — set, frozenset
5. 内置异常
6. 文本处理
6.1. string
6.2. re
6.3. difflib
6.4. textwrap
6.5. unicodedata
6.6. stringprep
6.7. readline
6.8. rlcompleter
7. 二进制处理
7.1. struct
7.2. codecs
8. 数据类型
8.1. datetime
8.2. calendar
8.3. collectons
8.4. collections.abc
8.5. heapq
8.6. bisect
8.7. array
8.8. weakref
8.9. types
8.10. copy
8.11. pprint
8.12. reprlib
8.13. enum
8.14. Flag
9. 数值模块
9.1. numbers
9.2. math
9.3. cmath
9.4. decimal
9.5. fractions
9.6. random
9.7. statistics
10. 函数式编程模块
10.1. itertools
10.2. functools
10.3. operator
11. 文件和目录访问
11.1. pathlib
11.2. os.path
11.3. fileinput
11.4. stat
11.5. filecmp
11.6. tempfile
11.7. glob
11.8. fnmatch
11.9. linecache
11.10. shutil
11.11. macpath
12. 数据持久化
12.1. pickle
12.2. copyreg
12.3. shelve
12.4. marshal
12.5. dbm
12.6. sqllite
13. 数据压缩和归档
13.1. zlib
13.2. gzip
13.3. bz2
13.4. lzma
13.5. zipfile
13.6. tarfile
14. 文件格式
14.1. csv
14.2. configparser
14.3. netrc
14.4. xdrlib
14.5. plistlib
15. 加密服务
15.1. hashlib
15.2. hmac
15.3. secrets
16. 通用操作系统服务
16.1. os
16.2. io
16.3. time
16.4. argparse
16.5. getopt
16.6. logging
16.7. logging.Config
16.8. logging.Handlers
16.9. getpass
17. 并发执行
17.1. threading
17.2. multiprocessing
17.3. multiprocessing.Process
17.4. multiprocessing.Process
17.5. multiprocessing.Queue
17.6. multiprocessing.Queue
17.7. multiprocessing.JoinableQueue
17.8. multiprocessing.connection.Connection
18. 进程通信和网络
19. 网络数据处理
20. 结构化文本文档处理工具
Read the Docs
v: latest
Versions
latest
Downloads
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.