FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
netkiller.github.io/python/python.html at master · netkiller/netkiller.github.io · GitHub
netkiller
/
netkiller.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
419
Star
1.3k
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
netkiller.github.io
/
python
/
python.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (36 loc) · 22 KB
Breadcrumbs
netkiller.github.io
/
python
/
python.html
Copy path
File metadata and controls
45 lines (36 loc) · 22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<
?xml version="1.0" encoding="UTF-8" standalone="no"?
>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html
xmlns
="
http://www.w3.org/1999/xhtml
"
>
<
head
>
<
meta
http-equiv
="
Content-Type
"
content
="
text/html; charset=UTF-8
"
/>
<
title
>
部分 I. Python 语言
</
title
>
<
link
rel
="
stylesheet
"
type
="
text/css
"
href
="
docbook.css
"
/>
<
meta
name
="
generator
"
content
="
DocBook XSL Stylesheets Vsnapshot
"
/>
<
meta
name
="
keywords
"
content
="
php,pear,pecl,phar, python, ,
"
/>
<
link
rel
="
home
"
href
="
index.html
"
title
="
Netkiller Python 手札
"
/>
<
link
rel
="
up
"
href
="
index.html
"
title
="
Netkiller Python 手札
"
/>
<
link
rel
="
prev
"
href
="
contacts.html
"
title
="
1.5. 联系方式
"
/>
<
link
rel
="
next
"
href
="
lang/index.html
"
title
="
第 1 章 Python 入门
"
/>
</
head
>
<
body
>
<
a
xmlns
=""
href
="
//www.netkiller.cn/
"
>
Home
</
a
>
|
<
a
xmlns
=""
href
="
//netkiller.github.io/
"
>
简体中文
</
a
>
|
<
a
xmlns
=""
href
="
http://netkiller.sourceforge.net/
"
>
繁体中文
</
a
>
|
<
a
xmlns
=""
href
="
/journal/index.html
"
>
杂文
</
a
>
|
<
a
xmlns
=""
href
="
https://github.com/netkiller
"
>
Github
</
a
>
|
<
a
xmlns
=""
href
="
https://zhuanlan.zhihu.com/netkiller
"
>
知乎专栏
</
a
>
|
<
a
xmlns
=""
href
="
https://www.facebook.com/bg7nyt
"
>
Facebook
</
a
>
|
<
a
xmlns
=""
href
="
http://cn.linkedin.com/in/netkiller/
"
>
Linkedin
</
a
>
|
<
a
xmlns
=""
href
="
https://www.youtube.com/user/bg7nyt/videos
"
>
Youtube
</
a
>
|
<
a
xmlns
=""
href
="
//www.netkiller.cn/home/donations.html
"
>
打赏(Donations)
</
a
>
|
<
a
xmlns
=""
href
="
//www.netkiller.cn/home/about.html
"
>
About
</
a
>
<
div
class
="
navheader
"
>
<
table
width
="
100%
"
summary
="
Navigation header
"
>
<
tr
>
<
th
colspan
="
3
"
align
="
center
"
>
部分 I. Python 语言
</
th
>
</
tr
>
<
tr
>
<
td
width
="
20%
"
align
="
left
"
>
<
a
accesskey
="
p
"
href
="
contacts.html
"
>
上一页
</
a
>
</
td
>
<
th
width
="
60%
"
align
="
center
"
>
</
th
>
<
td
width
="
20%
"
align
="
right
"
>
<
a
accesskey
="
n
"
href
="
lang/index.html
"
>
下一页
</
a
>
</
td
>
</
tr
>
</
table
>
<
hr
/>
</
div
>
<
table
xmlns
=""
>
<
tr
>
<
td
>
<
iframe
src
="
//ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=watch&count=true&size=large
"
height
="
30
"
width
="
170
"
frameborder
="
0
"
scrolling
="
0
"
style
="
width:170px; height: 30px;
"
allowTransparency
="
true
"
>
</
iframe
>
</
td
>
<
td
>
<
iframe
src
="
//ghbtns.com/github-btn.html?user=netkiller&repo=netkiller.github.io&type=fork&count=true&size=large
"
height
="
30
"
width
="
170
"
frameborder
="
0
"
scrolling
="
0
"
style
="
width:170px; height: 30px;
"
allowTransparency
="
true
"
>
</
iframe
>
</
td
>
<
td
>
<
iframe
src
="
//ghbtns.com/github-btn.html?user=netkiller&type=follow&count=true&size=large
"
height
="
30
"
width
="
240
"
frameborder
="
0
"
scrolling
="
0
"
style
="
width:240px; height: 30px;
"
allowTransparency
="
true
"
>
</
iframe
>
</
td
>
<
td
>
</
td
>
<
td
>
<
a
href
="
https://zhuanlan.zhihu.com/netkiller
"
>
<
img
src
="
/images/logo/zhihu-card-default.svg
"
height
="
25
"
/>
</
a
>
</
td
>
<
td
valign
="
middle
"
>
<
a
href
="
https://zhuanlan.zhihu.com/netkiller
"
>
知乎专栏
</
a
>
</
td
>
<
td
>
</
td
>
<
td
>
</
td
>
<
td
>
</
td
>
<
td
>
</
td
>
</
tr
>
</
table
>
<
div
class
="
part
"
>
<
div
class
="
titlepage
"
>
<
div
>
<
div
>
<
h1
class
="
title
"
>
<
a
id
="
python
"
>
</
a
>
部分 I. Python 语言
</
h1
>
</
div
>
</
div
>
</
div
>
<
div
class
="
toc
"
>
<
p
>
<
strong
>
目录
</
strong
>
</
p
>
<
dl
class
="
toc
"
>
<
dt
>
<
span
class
="
chapter
"
>
<
a
href
="
lang/index.html
"
>
1. Python 入门
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#introduction
"
>
1.1. 如何快速学习 Python 语言
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id771
"
>
1.1.1. 学习编程的目的是什么?
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id772
"
>
1.1.2. 很多公司是怎么死的?
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id773
"
>
1.1.3. 学习定位问题?
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id774
"
>
1.1.4. 小白怎么入门呢?
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id775
"
>
1.1.5. 从入门到放弃
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id776
"
>
1.1.6. 为什么学不会?
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id777
"
>
1.1.7. 如何快速高效的学习一门语言?
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/index.html#id778
"
>
1.1.8. 碎片化学习
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html
"
>
1.2. Python 安装
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#id779
"
>
1.2.1. Rocky Linux / AlmaLinux 安装 Python
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#python.install.docker
"
>
1.2.2. Docker 安装
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#python3.dnf
"
>
1.2.3. dnf 安装 python3.11
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#id780
"
>
1.2.4. 编译安装 Python3.x
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#id781
"
>
1.2.5. Ubunut 13.04 环境安装python3
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#pypy
"
>
1.2.6. pypy - fast alternative implementation of Python - PyPy
interpreter
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#eric
"
>
1.2.7. Eric Python IDE
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#exe
"
>
1.2.8. python to exe
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.install.html#python2
"
>
1.2.9. Python2.x
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/venv.html
"
>
1.3. venv - Python 虚拟环境
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/venv.html#id787
"
>
1.3.1. Linux 建立虚拟环境
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/venv.html#id788
"
>
1.3.2. 苹果电脑 Z Shell 建立虚拟环境
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/venv.html#id789
"
>
1.3.3. 苹果电脑 fish Shell 建立虚拟环境
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/venv.html#id790
"
>
1.3.4. 进入虚拟环境
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/venv.html#id791
"
>
1.3.5. 退出虚拟环境
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/ch01s04.html
"
>
1.4. Docker 部署
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html
"
>
1.5. Python Package Index (PyPI)
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id792
"
>
1.5.1. 什么是 PyPI
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id793
"
>
1.5.2. 准备目录
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id794
"
>
1.5.3. 创建LICENSE文件
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id795
"
>
1.5.4. 项目描述文件
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id796
"
>
1.5.5. 库代码
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id797
"
>
1.5.6. setuptools 构建脚本
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id798
"
>
1.5.7. 构建包
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id799
"
>
1.5.8. 查看包
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id800
"
>
1.5.9. 上传包
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id801
"
>
1.5.10. 安装包
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id802
"
>
1.5.11. 使用包
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id803
"
>
1.5.12. 卸载包
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id804
"
>
1.5.13. Built distribution
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id805
"
>
1.5.14. 免密登录
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#id806
"
>
1.5.15. 其他 Python 包管理工具
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#pyproject.toml
"
>
1.5.16. pyproject.toml
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/pypi.html#pip
"
>
1.5.17. pip - A tool for installing and managing Python packages
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.module.html
"
>
1.6. Python 模块
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.module.html#id826
"
>
1.6.1. 同级目录
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.module.html#id827
"
>
1.6.2. 一级目录
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.module.html#id828
"
>
1.6.3. 二级子目录
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.module.html#id829
"
>
1.6.4. 子目录调用上级目录
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.module.html#id830
"
>
1.6.5. 导入类
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html
"
>
1.7. 数据类型
</
a
>
</
span
>
</
dt
>
<
dd
>
<
dl
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#type
"
>
1.7.1. type 数据类型检测
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#string
"
>
1.7.2. 字符串
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#float
"
>
1.7.3. float 浮点数值
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#array
"
>
1.7.4. Array
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#datetime
"
>
1.7.5. 日期和时间
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#bytes
"
>
1.7.6. bytes 类型
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/type.html#format.percentage
"
>
1.7.7. 百分数
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
lang/python.datastruct.html
"
>
1.8. 数据结构</a></span></dt><dd><dl><dt><span class="section"><a href="lang/python.datastruct.html#data.list">1.8.1. List</a></span></dt><dt><span class="section"><a href="lang/python.datastruct.html#data.set">1.8.2. Set 集合</a></span></dt><dt><span class="section"><a href="lang/python.datastruct.html#data.dict">1.8.3. Dict 字典</a></span></dt><dt><span class="section"><a href="lang/python.datastruct.html#Iterator">1.8.4. Iterator</a></span></dt><dt><span class="section"><a href="lang/python.datastruct.html#python.queue">1.8.5. 队列</a></span></dt></dl></dd><dt><span class="section"><a href="lang/python.serializable.html">1.9. 序列化 </a></span></dt><dd><dl><dt><span class="section"><a href="lang/python.serializable.html#id892">1.9.1. struct C 语言结构体序列化</a></span></dt><dt><span class="section"><a href="lang/python.serializable.html#python.shelve">1.9.2. shelve(序列化)</a></span></dt></dl></dd><dt><span class="section"><a href="lang/class.html">1.10. Class</a></span></dt><dd><dl><dt><span class="section"><a href="lang/class.html#class.init">1.10.1. __init__ 构造方法</a></span></dt><dt><span class="section"><a href="lang/class.html#id893">1.10.2. print class</a></span></dt><dt><span class="section"><a href="lang/class.html#id895">1.10.3. inner class(内嵌类)</a></span></dt><dt><span class="section"><a href="lang/class.html#python.enum">1.10.4. Python 枚举 Enum</a></span></dt></dl></dd><dt><span class="section"><a href="lang/python.regular.html">1.11. 正则处理字符串</a></span></dt><dd><dl><dt><span class="section"><a href="lang/python.regular.html#id905">1.11.1. 正则替换</a></span></dt><dt><span class="section"><a href="lang/python.regular.html#id906">1.11.2. match</a></span></dt><dt><span class="section"><a href="lang/python.regular.html#id907">1.11.3. 正则查找</a></span></dt><dt><span class="section"><a href="lang/python.regular.html#id908">1.11.4. 正则匹配后返回字典</a></span></dt></dl></dd><dt><span class="section"><a href="lang/ch01s12.html">1.12. 循环</a></span></dt><dt><span class="section"><a href="lang/stdio.html">1.13. Input/Output 输出/输出</a></span></dt><dd><dl><dt><span class="section"><a href="lang/stdio.html#sys">1.13.1. 标准输入/输出</a></span></dt><dt><span class="section"><a href="lang/stdio.html#pipe">1.13.2. Pipe</a></span></dt><dt><span class="section"><a href="lang/stdio.html#socketpair">1.13.3. socketpair</a></span></dt></dl></dd><dt><span class="section"><a href="lang/debug.html">1.14. Python 调试技巧</a></span></dt><dd><dl><dt><span class="section"><a href="lang/debug.html#id911">1.14.1. 显示代码所在文件行</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="library/index.html">2. Library</a></span></dt><dd><dl><dt><span class="section"><a href="library/index.html#io.file">2.1. 文件和目录</a></span></dt><dd><dl><dt><span class="section"><a href="library/index.html#id912">2.1.1. 创建文件</a></span></dt><dt><span class="section"><a href="library/index.html#id913">2.1.2. 读取文件</a></span></dt><dt><span class="section"><a href="library/index.html#id916">2.1.3. 写入文件</a></span></dt><dt><span class="section"><a href="library/index.html#id917">2.1.4. 读取二进制文件</a></span></dt><dt><span class="section"><a href="library/index.html#id918">2.1.5. 文件名/扩展名</a></span></dt><dt><span class="section"><a href="library/index.html#os.makedirs">2.1.6. 创建目录</a></span></dt><dt><span class="section"><a href="library/index.html#os.access">2.1.7. 权限判断</a></span></dt><dt><span class="section"><a href="library/index.html#os.path.exists">2.1.8. 判断文件/路径是否存在</a></span></dt><dt><span class="section"><a href="library/index.html#os.path.join">2.1.9. 路径拼接</a></span></dt><dt><span class="section"><a href="library/index.html#os.listdir">2.1.10. 目录和文件列表</a></span></dt><dt><span class="section"><a href="library/index.html#os.scandir">2.1.11. os.scandir 扫描目录</a></span></dt><dt><span class="section"><a href="library/index.html#os.remove">2.1.12. 删除文件或目录</a></span></dt><dt><span class="section"><a href="library/index.html#id923">2.1.13. 路径操作</a></span></dt><dt><span class="section"><a href="library/index.html#file.copy">2.1.14. 复制文件</a></span></dt><dt><span class="section"><a href="library/index.html#tempfile">2.1.15. 临时目录和文件</a></span></dt></dl></dd><dt><span class="section"><a href="library/random.html">2.2. 随机数</a></span></dt><dd><dl><dt><span class="section"><a href="library/random.html#id930">2.2.1. 随机选择列表</a></span></dt><dt><span class="section"><a href="library/random.html#id931">2.2.2. 指定随机数范围</a></span></dt><dt><span class="section"><a href="library/random.html#id932">2.2.3. 指定随机数范围(整数)</a></span></dt><dt><span class="section"><a href="library/random.html#id933">2.2.4. 指定随机数范围(小数)</a></span></dt><dt><span class="section"><a href="library/random.html#id934">2.2.5. 打乱列表顺序</a></span></dt></dl></dd><dt><span class="section"><a href="library/process.html">2.3. 进程与线程</a></span></dt><dd><dl><dt><span class="section"><a href="library/process.html#subprocess">2.3.1. subprocess</a></span></dt><dt><span class="section"><a href="library/process.html#threading">2.3.2. Python 多线程</a></span></dt><dt><span class="section"><a href="library/process.html#daemon">2.3.3. 守护进程(Daemon)</a></span></dt></dl></dd><dt><span class="section"><a href="library/python.log.html">2.4. 日志</a></span></dt><dd><dl><dt><span class="section"><a href="library/python.log.html#logging">2.4.1. logging</a></span></dt><dt><span class="section"><a href="library/python.log.html#syslog">2.4.2. syslog</a></span></dt><dt><span class="section"><a href="library/python.log.html#id939">2.4.3. 日志彩色输出</a></span></dt></dl></dd><dt><span class="section"><a href="library/socket.html">2.5. 网络开发(Socket)</a></span></dt><dd><dl><dt><span class="section"><a href="library/socket.html#simplehttpserver">2.5.1. SimpleHTTPServer</a></span></dt><dt><span class="section"><a href="library/socket.html#id942">2.5.2. UDP</a></span></dt><dt><span class="section"><a href="library/socket.html#id946">2.5.3. Websocket</a></span></dt><dt><span class="section"><a href="library/socket.html#python.network">2.5.4. Network</a></span></dt></dl></dd><dt><span class="section"><a href="library/ch02s06.html">2.6. YAML</a></span></dt><dd><dl><dt><span class="section"><a href="library/ch02s06.html#id947">2.6.1. 严格按段落展示 |、|+、|-</a></span></dt><dt><span class="section"><a href="library/ch02s06.html#id948">2.6.2. >、>+、>-</a></span></dt><dt><span class="section"><a href="library/ch02s06.html#id950">2.6.3. PyYAML</a></span></dt><dt><span class="section"><a href="library/ch02s06.html#ruamel.yaml">2.6.4. ruamel.yaml</a></span></dt></dl></dd><dt><span class="section"><a href="library/ch02s07.html">2.7. Requests</a></span></dt><dt><span class="section"><a href="library/httpx.html">2.8. httpx</a></span></dt><dd><dl><dt><span class="section"><a href="library/httpx.html#id953">2.8.1. 安装 https</a></span></dt><dt><span class="section"><a href="library/httpx.html#id954">2.8.2. 操作演示</a></span></dt><dt><span class="section"><a href="library/httpx.html#id955">2.8.3. 上传文件</a></span></dt><dt><span class="section"><a href="library/httpx.html#httpx.restful">2.8.4. Restful CRUD 操作</a></span></dt><dt><span class="section"><a href="library/httpx.html#id956">2.8.5. HTTP 2</a></span></dt><dt><span class="section"><a href="library/httpx.html#httpx.BasicAuth">2.8.6. BasicAuth</a></span></dt><dt><span class="section"><a href="library/httpx.html#httpx.Bearer">2.8.7. Bearer 认证</a></span></dt><dt><span class="section"><a href="library/httpx.html#httpx.async">2.8.8. 异步请求</a></span></dt><dt><span class="section"><a href="library/httpx.html#httpx.log">2.8.9. 日志输出</a></span></dt></dl></dd><dt><span class="section"><a href="library/asyncio.html">2.9. asyncio</a></span></dt><dd><dl><dt><span class="section"><a href="library/asyncio.html#id957">2.9.1. </a></span></dt></dl></dd><dt><span class="section"><a href="library/terminal.html">2.10. 终端环境开发</a></span></dt><dd><dl><dt><span class="section"><a href="library/terminal.html#argparse">2.10.1. 命令行参数处理</a></span></dt><dt><span class="section"><a href="library/terminal.html#getopt">2.10.2. getopt – Command line option parsing</a></span></dt><dt><span class="section"><a href="library/terminal.html#ansi.color">2.10.3. ANSI Color</a></span></dt><dt><span class="section"><a href="library/terminal.html#进度条">2.10.4. 进度条</a></span></dt><dt><span class="section"><a href="library/terminal.html#texttable">2.10.5. texttable - module for creating simple ASCII tables</a></span></dt><dt><span class="section"><a href="library/terminal.html#prompt_toolkit">2.10.6. prompt_toolkit</a></span></dt><dt><span class="section"><a href="library/terminal.html#simple-term-menu">2.10.7. Simple Terminal Menu</a></span></dt><dt><span class="section"><a href="library/terminal.html#picotui">2.10.8. picotui</a></span></dt><dt><span class="section"><a href="library/terminal.html#tui">2.10.9. TUI</a></span></dt></dl></dd><dt><span class="section"><a href="library/qrcode.html">2.11. 验证码</a></span></dt><dd><dl><dt><span class="section"><a href="library/qrcode.html#id985">2.11.1. 基本用法</a></span></dt><dt><span class="section"><a href="library/qrcode.html#id988">2.11.2. Image CAPTCHAs</a></span></dt></dl></dd><dt><span class="section"><a href="library/dbm.html">2.12. dbm Key-Value 数据库</a></span></dt><dt><span class="section"><a href="library/keyboard.html">2.13. keyboard</a></span></dt><dd><dl><dt><span class="section"><a href="library/keyboard.html#id989">2.13.1. 读取键盘值</a></span></dt><dt><span class="section"><a href="library/keyboard.html#id990">2.13.2. 功能键</a></span></dt><dt><span class="section"><a href="library/keyboard.html#id991">2.13.3. 上下索道缆车开关门</a></span></dt></dl></dd><dt><span class="section"><a href="library/gps.html">2.14. GPS</a></span></dt><dd><dl><dt><span class="section"><a href="library/gps.html#id992">2.14.1. gpsdclient</a></span></dt><dt><span class="section"><a href="library/gps.html#id993">2.14.2. Traccar</a></span></dt></dl></dd><dt><span class="section"><a href="library/ZeroRPC.html">2.15. ZeroRPC</a></span></dt><dt><span class="section"><a href="library/fuse-python.html">2.16. fuse-python.x86_64 : Python bindings for FUSE - filesystem in
userspace
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
library/python-spdylay.html
"
>
2.17. Python-spdylay - Spdylay Python Extension Module
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
library/mechanize.html
"
>
2.18. mechanize
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
library/python-memcached.html
"
>
2.19. python-memcached
</
a
>
</
span
>
</
dt
>
<
dt
>
<
span
class
="
section
"
>
<
a
href
="
library/python-subversion.html
"
>
2.20. python-subversion
</
a
>
</
span
>
</
dt
>
</
dl
>
</
dd
>
</
dl
>
</
div
>
</
div
>
<
script
xmlns
=""
type
="
text/javascript
"
id
="
clustrmaps
"
src
="
//cdn.clustrmaps.com/map_v2.js?u=r5HG&d=9mi5r_kkDC8uxG8HuY3p4-2qgeeVypAK9vMD-2P6BYM
"
>
</
script
>
<
div
class
="
navfooter
"
>
<
hr
/>
<
table
width
="
100%
"
summary
="
Navigation footer
"
>
<
tr
>
<
td
width
="
40%
"
align
="
left
"
>
<
a
accesskey
="
p
"
href
="
contacts.html
"
>
上一页
</
a
>
</
td
>
<
td
width
="
20%
"
align
="
center
"
>
</
td
>
<
td
width
="
40%
"
align
="
right
"
>
<
a
accesskey
="
n
"
href
="
lang/index.html
"
>
下一页
</
a
>
</
td
>
</
tr
>
<
tr
>
<
td
width
="
40%
"
align
="
left
"
valign
="
top
"
>
1.5. 联系方式
</
td
>
<
td
width
="
20%
"
align
="
center
"
>
<
a
accesskey
="
h
"
href
="
index.html
"
>
起始页
</
a
>
</
td
>
<
td
width
="
40%
"
align
="
right
"
valign
="
top
"
>
第 1 章 Python 入门
</
td
>
</
tr
>
</
table
>
</
div
>
<
script
xmlns
=""
>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
)
{
i
[
'GoogleAnalyticsObject'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
(
)
{
(
i
[
r
]
.
q
=
i
[
r
]
.
q
||
[
]
)
.
push
(
arguments
)
}
,
i
[
r
]
.
l
=
1
*
new
Date
(
)
;
a
=
s
.
createElement
(
o
)
,
m
=
s
.
getElementsByTagName
(
o
)
[
0
]
;
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
}
)
(
window
,
document
,
'script'
,
'//www.google-analytics.com/analytics.js'
,
'ga'
)
;
ga
(
'create'
,
'UA-11694057-1'
,
'auto'
)
;
ga
(
'send'
,
'pageview'
)
;
</
script
>
<
script
xmlns
=""
async
="
async
"
>
var
_hmt
=
_hmt
||
[
]
;
(
function
(
)
{
var
hm
=
document
.
createElement
(
"script"
)
;
hm
.
src
=
"https://hm.baidu.com/hm.js?93967759a51cda79e49bf4e34d0b0f2c"
;
var
s
=
document
.
getElementsByTagName
(
"script"
)
[
0
]
;
s
.
parentNode
.
insertBefore
(
hm
,
s
)
;
}
)
(
)
;
</
script
>
<
script
xmlns
=""
async
="
async
"
>
(
function
(
)
{
var
bp
=
document
.
createElement
(
'script'
)
;
var
curProtocol
=
window
.
location
.
protocol
.
split
(
':'
)
[
0
]
;
if
(
curProtocol
===
'https'
)
{
bp
.
src
=
'https://zz.bdstatic.com/linksubmit/push.js'
;
}
else
{
bp
.
src
=
'http://push.zhanzhang.baidu.com/push.js'
;
}
var
s
=
document
.
getElementsByTagName
(
"script"
)
[
0
]
;
s
.
parentNode
.
insertBefore
(
bp
,
s
)
;
}
)
(
)
;
</
script
>
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL