-
Notifications
You must be signed in to change notification settings - Fork 2
/
index11.html
417 lines (371 loc) · 28.4 KB
/
index11.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="utf-8" />
<title>python自动化测试人工智能</title>
<link rel="stylesheet" href="/theme/css/main.css" />
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="/">python自动化测试人工智能 </a></h1>
<nav><ul>
<li><a href="/category/ba-zi.html">八字</a></li>
<li><a href="/category/ce-shi.html">测试</a></li>
<li><a href="/category/ce-shi-kuang-jia.html">测试框架</a></li>
<li><a href="/category/common.html">common</a></li>
<li><a href="/category/da-shu-ju.html">大数据</a></li>
<li><a href="/category/feng-shui.html">风水</a></li>
<li><a href="/category/ji-qi-xue-xi.html">机器学习</a></li>
<li><a href="/category/jie-meng.html">解梦</a></li>
<li><a href="/category/linux.html">linux</a></li>
<li><a href="/category/python.html">python</a></li>
<li><a href="/category/shu-ji.html">书籍</a></li>
<li><a href="/category/shu-ju-fen-xi.html">数据分析</a></li>
<li><a href="/category/zhong-cao-yao.html">中草药</a></li>
<li><a href="/category/zhong-yi.html">中医</a></li>
</ul></nav>
</header><!-- /#banner -->
<section id="content" class="body">
<ol id="posts-list" class="hfeed" start="9">
<li><article class="hentry">
<header>
<h1><a href="/python_monitor.html" rel="bookmark"
title="Permalink to python应用性能监控工具简介">python应用性能监控工具简介</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-10-22T09:20:00+08:00">
Published: 一 22 十月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/python.html">python</a>.</p>
</footer><!-- /.post-info --> <h2 id="_1">监控简介</h2>
<p>监视工具捕获,分析和显示Web应用程序执行信息。每个应用程序在Web堆栈的所有层都可能出现问题。监控工具通过展示帮助开发人员和运营团队响应并修复问题。</p>
<p>捕获和分析有关生产环境的数据对于主动处理Web应用程序的稳定性,性能和错误至关重要。</p>
<p>监视和日志记录的目的非常相似,它们有助于诊断应用程序的问题并帮助调试。主要差异为日志基于事件触发,而监视是被动的背景数据集合。</p>
<p>例如发生错误时,通过异常处理程序中的代码显式记录该事件。同时,监视代理程序对代码进行检测,并且不仅收集有关已记录异常的数据,还收集有关函数和方法性能的数据。</p>
<p>操作系统和网络的监控关注: CPU、内存和磁盘利用率,网络带宽和延迟</p>
<p>应用程序级别监视包含几个方面。 基于应用程序是重读,重写还是受到快速波动的影响而有所不同。涉及应用程序警告和错误(500级HTTP错误)、应用代码性能、模板渲染时间、浏览器渲染应用程序的时间、数据库查询性能等。</p>
<h2 id="_2">开源监控项目</h2>
<h3 id="_3">错误跟踪</h3>
<ul>
<li><a href="https://github.com/getsentry/sentry">Sentry</a></li>
</ul>
<p>最初只是一个Python监控项目,但现在可以用于任何编程语言。</p>
<p><img alt="图片.png" src="https://upload-images.jianshu.io/upload_images/12713060-77698199050e060c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<h3 id="_4">度量</h3>
<ul>
<li><a href="https://github.com/etsy/statsd/">statsd</a></li>
</ul>
<p>是一个node.js网络守护程序,它监听指标并聚合它们以便转移到另一服务(如Graphite)。</p>
<ul>
<li><a href="https://graphite.readthedocs.org/en/latest/overview.html">Graphite</a></li>
</ul>
<p>存储时间序列数据,并通过Django Web应用程序在图形中显示它们。</p>
<p><img alt="图片.png" src="https://upload-images.jianshu.io/upload_images/12713060-a17b4bbfc3b73d29.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<ul>
<li><a href="http://sensuapp.org/">Sensu</a></li>
</ul>
<p>是一个用Ruby编写的开源监控框架,但适用于任何编程语言Web应用程序。</p>
<ul>
<li><a href="http://vimeo.github.io/graph-explorer/">Graph Explorer …</a></li></ul>
<a class="readmore" href="/python_monitor.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/selenium_example5.html" rel="bookmark"
title="Permalink to selenium自动化测试工具python笔试面试项目实战5键盘操作">selenium自动化测试工具python笔试面试项目实战5键盘操作</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-10-18T09:20:00+08:00">
Published: 四 18 十月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/python.html">python</a>.</p>
</footer><!-- /.post-info --> <h3 id="_1">说明</h3>
<p>本文参考答案基于Chrome,分辨率1920*1080,在其他环境表现可能会不同。
<a href="https://github.com/china-testing/python-api-tesing/tree/master/selenium_examples/ch5">本文代码地址</a></p>
<ul>
<li>参考书籍下载:</li>
</ul>
<p><a href="https://itbooks.pipipan.com/fs/18113597-304183281">Learning Selenium Testing Tools with Python-2014.pdf</a></p>
<p><a href="https://itbooks.pipipan.com/fs/18113597-315206043">Selenium自动化测试 基于 Python 语言 - 2018.pdf</a></p>
<h3 id="tab">上机实操: 在新的TAB打开连接</h3>
<ul>
<li>打开:https://china-testing.github.io/</li>
<li>选择"数据分析"栏目的文章</li>
<li>按住"Ctrl+TAB"选择"python"栏目的文章</li>
<li>切换到新的标签"python"</li>
<li>关闭新的标签"python"</li>
<li>关闭浏览器</li>
</ul>
<p>参考答案</p>
<div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/python3</span>
<span class="c1"># -*- coding: utf-8 -*-</span>
<span class="c1"># qq群144081101 567351477</span>
<span class="c1"># CreateDate …</span></pre></div>
<a class="readmore" href="/selenium_example5.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/testing_standard.html" rel="bookmark"
title="Permalink to 2018软件测试标准汇总下载">2018软件测试标准汇总下载</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-10-16T14:20:00+08:00">
Published: 二 16 十月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/ce-shi.html">测试</a>.</p>
</footer><!-- /.post-info --> <p>标题有链接的,点击标题即可下载</p>
<h2 id="isoiec-25010"><a href="https://itbooks.pipipan.com/fs/18113597-314939352">国际标准 ISO/IEC 25010 系统和软件质量模型</a></h2>
<p><img alt="图片.png" src="https://upload-images.jianshu.io/upload_images/12713060-dec626a3759bb13d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<p>英文原版: <a href="https://itbooks.pipipan.com/fs/18113597-314939974">BS ISO IEC 25010-2011 Systems and software engineering — Systems and software Quality Requirements and Evaluation (SQuaRE) — System and software quality models.pdf</a></p>
<h2 id="ieee-829"><a href="https://itbooks.pipipan.com/fs/18113597-314939694">IEEE 829 测试文档国际标准</a></h2>
<p><strong>IEEE 829-1998</strong>,也被称做<strong>829软件测试文档标准</strong>,作为一个IEEE的标准定义了一套文档用于8个已定义的软件测试阶段,每个阶段可能产生它自己单独的文件类型。这个标准定义了文档的格式但是没有规定它们是否必须全部被应用,也不包括这些文档中任何相关的其它标准的内容。</p>
<ul>
<li>
<p>测试计划:一个管理计划的文档 包括:</p>
<ul>
<li>
<p>测试如何完成(包括SUT的配置).</p>
</li>
<li>
<p>谁来做测试</p>
</li>
<li>
<p>将要测试什么</p>
</li>
<li>
<p>测试将持续多久(虽然根据可以使用的资源的限制而有变化 …</p></li></ul></li></ul>
<a class="readmore" href="/testing_standard.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/opencv_books.html" rel="bookmark"
title="Permalink to 2018最佳人工智能图像处理工具OpenCV书籍下载">2018最佳人工智能图像处理工具OpenCV书籍下载</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-10-15T15:20:00+08:00">
Published: 一 15 十月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/ce-shi-kuang-jia.html">测试框架</a>.</p>
</footer><!-- /.post-info --> <p><a href="https://china-testing.github.io/python_books.html">python工具书籍下载-持续更新</a></p>
<h3 id="machine-learning-for-opencv-2017pdf"><a href="https://itbooks.pipipan.com/fs/18113597-310106487">@Machine Learning for OpenCV - 2017.pdf</a></h3>
<p>A practical introduction to the world of machine learning and image processing using
OpenCV and Python 使用OpenCV和Python对机器学习和图像处理世界的实用介绍</p>
<p><img alt="image.png" src="https://upload-images.jianshu.io/upload_images/12713060-b6e6d51b3d273984.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<p>机器学习不再仅仅是一个流行语,它就在我们身边:从保护您的电子邮件到自动标记图片中的朋友,到预测您喜欢的电影。计算机视觉是当今最令人兴奋的机器学习应用领域之一,深度学习驱动创新系统,如自动驾驶汽车和谷歌的DeepMind。</p>
<p>OpenCV位于这些主题的交叉点,为经典以及最先进的计算机视觉和机器学习算法提供了一个全面的开源库。结合Python Anaconda,您可以访问您可能要求的所有开源计算库。</p>
<p>OpenCV的机器学习首先向您介绍统计学习的基本概念,例如分类和回归。一旦涵盖了所有基础知识,您将开始探索各种算法,如决策树,支持向量机和贝叶斯网络,并学习如何将它们与其他OpenCV功能相结合。随着本书的进展,您的机器学习技能也将如此,直到您准备好接受当今最热门的话题:深度学习。</p>
<p>在本书的最后,您将准备好通过构建现有的源代码或从头开发自己的算法来解决您自己的机器学习问题!</p>
<p>https …</p>
<a class="readmore" href="/opencv_books.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python_ibm.html" rel="bookmark"
title="Permalink to IBM开发社区python精品文章汇总">IBM开发社区python精品文章汇总</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-10-15T09:30:00+08:00">
Published: 一 15 十月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/python.html">python</a>.</p>
</footer><!-- /.post-info --> <p><a href="http://www.ibm.com/developerworks/cn/analytics/library/ba-on-demand-data-python-3/index.html"><strong>在 Python 中按需处理数据,第 3 部分: 协程和 asyncio</strong></a> 2018年 07月 25日</p>
<p><a href="http://www.ibm.com/developerworks/cn/analytics/library/ba-on-demand-data-python-1/index.html"><strong>在 Python 中按需处理数据,第 1 部分: Python 迭代器和生成器</strong></a> 2018年 07月 18日</p>
<p><a href="http://www.ibm.com/developerworks/cn/analytics/library/ba-on-demand-data-python-2/index.html"><strong>在 Python 中按需处理数据,第 2 部分: 神奇的 itertools</strong></a> 2018年 07月 18日</p>
<p><a href="http://www.ibm.com/developerworks/cn/linux/simplyfy-linux-deployment-with-fabric/index.html"><strong>Fabric 让 Linux 系统部署变得简单</strong></a> 2018年 07月 06日</p>
<p><a href="http://www.ibm.com/developerworks/cn/analytics/library/ba-lo-machine-learning-hands-on7-gmm/index.html?ca=drs-">手把手教你实现一个高斯混合模型</a>
教程
2018年06月28日</p>
<p><a href="http://www.ibm.com/developerworks/cn/cloud/library/cl-develop-blockchain-app-in-python/index.html">使用Python从零开始开发区块链应用程序</a>
教程
2018年06月12日
<a href="http://www.ibm.com/developerworks/cn/analytics/library/ba-intro-data-science-4/index.html">数据科学简介,第4部分:数据科学语言</a>
技术文章 …</p>
<a class="readmore" href="/python_ibm.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python3_lib_requests.html" rel="bookmark"
title="Permalink to python工具库介绍-requests:人性化的HTTP">python工具库介绍-requests:人性化的HTTP</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-10-15T09:20:00+08:00">
Published: 一 15 十月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/python.html">python</a>.</p>
</footer><!-- /.post-info --> <p>Requests是Python基于<a href="http://docs.python-requests.org/en/latest/user/intro/#apache2">Apache2 Licensed</a>许可证的人性化HTTP库。</p>
<p>Python标准库中urllib2提供了不少HTTP 功能,但API不系统。它有点过时,完成最简单的任务也需要大量工作。</p>
<p>下面我们用实例演示访问github。</p>
<div class="highlight"><pre><span></span><span class="o">>>></span> <span class="kn">import</span> <span class="nn">requests</span>
<span class="o">>>></span> <span class="n">r</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">'https://api.github.com/user'</span><span class="p">,</span> <span class="n">auth</span><span class="o">=</span><span class="p">(</span><span class="s1">'[email protected]'</span><span class="p">,</span> <span class="s1">'password'</span><span class="p">))</span>
<span class="o">>>></span> <span class="n">r</span><span class="o">.</span><span class="n">status_code</span>
<span class="mi">200</span>
<span class="o">>>></span> <span class="n">r</span><span class="o">.</span><span class="n">headers</span><span class="p">[</span><span class="s1">'content-type'</span><span class="p">]</span>
<span class="s1">'application/json; charset=utf-8'</span>
<span class="o">>>></span> <span class="n">r</span><span class="o">.</span><span class="n">encoding</span>
<span class="s1">'utf-8'</span>
<span class="o">>>></span> <span class="n">r</span><span class="o">.</span><span class="n">text</span>
<span class="sa">u</span><span class="s1">'{"login":"oychw",...}'</span>
<span class="o">>>></span> <span class="n">r</span><span class="o">.</span><span class="n">json</span><span class="p">()</span>
<span class="p">{</span><span class="sa">u</span><span class="s1">'disk_usage'</span><span class="p">:</span> <span class="mi">176</span><span class="p">,</span> <span class="sa">u</span><span class="s1">'private_gists …</span></pre></div>
<a class="readmore" href="/python3_lib_requests.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/yao_jinyinhua.html" rel="bookmark"
title="Permalink to 中草药的故事-金银花(标准中药)- 清热解毒,疏散风热">中草药的故事-金银花(标准中药)- 清热解毒,疏散风热</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-09-20T10:20:00+08:00">
Published: 四 20 九月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/zhong-cao-yao.html">中草药</a>.</p>
</footer><!-- /.post-info --> <p>中草药的故事-金银花(标准中药)- 清热解毒,疏散风热</p>
<p><img alt="image.png" src="https://upload-images.jianshu.io/upload_images/12713117-75df21c7ac9ef600.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<p>唐朝期间,唐太宗患病,太医们束手无策。于是,太宗传旨召孙思邈进宫。孙思邈为唐太宗诊过脉,开了药方。一剂下去,唐太宗的病不见起色,后来又服一剂,仍不见效。当时唐太宗没有责怪他,让他先回家去。</p>
<p>孙思邈心里很不痛快,行走了半天,他来到一座山下,向山民讨口水喝。这户山民只有姐妹俩,以卖药材为生。她们对这位远来的客人很热情,姐姐用黄色花为他冲了一碗金花茶,妹妹用白色花为他冲了一碗银花茶。孙思邈每样茶喝一口,觉得味甘清淡,止渴清热,就说 “这两种花都可以入药。”</p>
<p>姐妹二人听罢,笑了起来。姐姐解释说 “这两种药是同一种药,刚开时白色,盛开时变黄,它叫金银花。莫说你,就是孙思邈也不认真假药呢,这次他在万岁爷面前丢尽了面子。我们进城卖药,那些太监把我们的药全都拿走,只给一点点钱。我们气不过,就用假药骗他们,为此连孙思邈也治不好万岁爷的病。”</p>
<p>孙思邈听罢,恍然大悟,当下 …</p>
<a class="readmore" href="/yao_jinyinhua.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/yao_hehuanhua.html" rel="bookmark"
title="Permalink to 中草药的故事-合欢花(标准中药)">中草药的故事-合欢花(标准中药)</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-09-19T14:20:00+08:00">
Published: 三 19 九月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/zhong-cao-yao.html">中草药</a>.</p>
</footer><!-- /.post-info --> <p>中草药的故事-合欢花(标准中药)</p>
<p><img alt="image.png" src="https://upload-images.jianshu.io/upload_images/12713117-e6150b4866147365.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<p>话说古时泰山脚下有个村子,村里有位何员外。何员外晚年生得一女,取名欢喜。这姑娘生得聪明美貌,何员外夫妻俩视如掌上明珠。欢喜18岁那年清明节到南山烧香,回来得了一种难治的病,精神恍惚,茶饭不思,一天天瘦下去,请了许多名医,吃了很多药,都不见效。因此,何员外贴出告示,重金酬谢能够医治小姐疾病者。</p>
<p>西庄有一位秀才虽穷,却长得眉清目秀,天资聪慧,除了文才过人,还精通医道。苦于无钱进京赶考。看到告示,秀才便揭榜进门。见到小姐,秀才即全然知晓病情,原来那日小姐南山烧香,与秀才邂逅,喜欢上他了,回家后日夜相思,此番见到秀才,病就好了一大半。于是,在诊脉后秀才说:“这位小姐是因心思不遂,忧思成疾,情志郁结所致。”又说南山上有一棵树,人称“有情树”,羽状复叶,片片相对,而且昼开夜合,其花如丝,清香扑鼻,可以清心解郁,定志安神 …</p>
<a class="readmore" href="/yao_hehuanhua.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/yao_wuzhuyu.html" rel="bookmark"
title="Permalink to 中草药的故事-吴茱萸(标准中药)">中草药的故事-吴茱萸(标准中药)</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-09-19T10:20:00+08:00">
Published: 三 19 九月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/zhong-cao-yao.html">中草药</a>.</p>
</footer><!-- /.post-info --> <p>中草药的故事-吴茱萸(标准中药)</p>
<p><img alt="image.png" src="https://upload-images.jianshu.io/upload_images/12713117-26c984520d1e2b2c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240"></p>
<p>据说,“吴茱萸”在春秋时候原名“吴萸”。它产在吴国,是一味止痛良药。</p>
<p>当时,吴国和邻近的楚国相比,还算小国,小国就得向大国进贡。这一年,吴国的贡品之中就有吴萸。谁想楚王一见,竟大发雷霆:</p>
<p>“小小的吴国,胆敢把以国命名的东西当贡品,这不是看不起堂堂的楚国吗?拿回去,不收!”</p>
<p>吴国的使者愣住了。</p>
<p>这时,有位姓朱的楚国大夫,急忙对楚王说:</p>
<p>“吴萸能治胃寒腹疼,还能止吐止泄。吴王听说大王有腹痛的老病,才选来进贡的。如果拒绝接受,那不就伤了两国的和气吗?”</p>
<p>“胡说,”楚王喝道,“我用不着什么‘吴萸’!我们的国家也不需要!”</p>
<p>吴国的使臣又羞又气,退出王宫。朱大夫追出来说:</p>
<p>“请你不要生气。就把吴萸留给我吧。楚王早晚会用上它的。”</p>
<p>吴使就把吴萸给了朱大夫。朱大夫拿到家中,栽在院内,还命人精心管理。</p>
<p>吴使回国后,吴王一听楚王这么无礼,就同楚国断了交。</p>
<p>几年过后 …</p>
<a class="readmore" href="/yao_wuzhuyu.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python3_crash_ch9_2.html" rel="bookmark"
title="Permalink to [雪峰磁针石博客]python3快速入门教程9重要的标准库-高级篇">[雪峰磁针石博客]python3快速入门教程9重要的标准库-高级篇</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-09-04T08:50:00+08:00">
Published: 二 04 九月 2018
</abbr>
<address class="vcard author">
By <a class="url fn" href="/author/andrew.html">andrew</a>
</address>
<p>In <a href="/category/python.html">python</a>.</p>
</footer><!-- /.post-info --> <h3 id="_1">日志</h3>
<p>logging模块提供了完整和灵活的日志系统。</p>
<div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">logging</span>
<span class="n">logging</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s1">'Debugging information'</span><span class="p">)</span>
<span class="n">logging</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'Informational message'</span><span class="p">)</span>
<span class="n">logging</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="s1">'Warning:config file </span><span class="si">%s</span><span class="s1"> not found'</span><span class="p">,</span> <span class="s1">'server.conf'</span><span class="p">)</span>
<span class="n">logging</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s1">'Error occurred'</span><span class="p">)</span>
<span class="n">logging</span><span class="o">.</span><span class="n">critical</span><span class="p">(</span><span class="s1">'Critical error -- shutting down'</span><span class="p">)</span>
</pre></div>
<p>输出如下:</p>
<div class="highlight"><pre><span></span><span class="n">WARNING</span><span class="p">:</span><span class="n">root</span><span class="p">:</span><span class="ne">Warning</span><span class="p">:</span><span class="n">config</span> <span class="nb">file</span> <span class="n">server</span><span class="o">.</span><span class="n">conf</span> <span class="ow">not</span> <span class="n">found</span>
<span class="n">ERROR</span><span class="p">:</span><span class="n">root</span><span class="p">:</span><span class="n">Error</span> <span class="n">occurred</span>
<span class="n">CRITICAL</span><span class="p">:</span><span class="n">root</span><span class="p">:</span><span class="n">Critical</span> <span class="n">error …</span></pre></div>
<a class="readmore" href="/python3_crash_ch9_2.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
<p class="paginator">
<a href="/index10.html">«</a>
Page 11 / 21
<a href="/index12.html">»</a>
</p>
</section><!-- /#content -->
<section id="extras" class="body">
<div class="blogroll">
<h2>links</h2>
<ul>
<li><a href="https://china-testing.github.io/testing_training.html">自动化性能接口测试线上及深圳培训与项目实战 qq群:144081101 591302926</a></li>
<li><a href="http://blog.sciencenet.cn/blog-2604609-1112306.html">pandas数据分析scrapy爬虫 521070358 Py人工智能pandas-opencv 6089740</a></li>
<li><a href="http://blog.sciencenet.cn/blog-2604609-1112306.html">中医解梦看相八字算命qq群 391441566 csdn书籍下载-python爬虫 437355848</a></li>
</ul>
</div><!-- /.blogroll -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<address id="about" class="vcard body">
Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
</address><!-- /#about -->
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
</footer><!-- /#contentinfo -->
</body>
</html>