-
Notifications
You must be signed in to change notification settings - Fork 2
/
index14.html
488 lines (433 loc) · 27.5 KB
/
index14.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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
<!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="/python3_lib_string.html" rel="bookmark"
title="Permalink to python标准模块介绍-string:文本常量和模板">python标准模块介绍-string:文本常量和模板</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-08-16T09: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/python.html">python</a>.</p>
</footer><!-- /.post-info --> <p>string—文本常量和模板</p>
<p>作用:包含处理文本的常量和类。</p>
<p>Python版本:1.4及以后版本</p>
<p>最早的Python版本就有string模块。 之前在这个模块中实现的许多函数已经移至str对象的方法。 string模块保留了几个有用的常量和类,用于处理str对象。</p>
<p><a href="https://github.com/china-testing/python-api-tesing/tree/master/python3_libraries/string">代码地址</a></p>
<h4 id="_1">函数</h4>
<p>capwords()的将字符串中所有单词的首字母大写。</p>
<div class="highlight"><pre><span></span><span class="o">>>></span> <span class="kn">import</span> <span class="nn">string</span>
<span class="o">>>></span> <span class="n">t</span> <span class="o">=</span> <span class="s2">"hello world!"</span>
<span class="o">>>></span> <span class="n">string</span><span class="o">.</span><span class="n">capwords</span><span class="p">(</span><span class="n">t</span><span class="p">)</span>
<span class="s1">'Hello World!'</span>
<span class="o">>>></span> <span class="n">t</span>
<span class="s1">'hello world!'</span>
<span class="o">>>></span> <span class="n">t</span><span class="o">.</span><span class="n">capitalize</span><span class="p">()</span>
<span class="s1">'Hello world!'</span>
<span class="o">>>></span> <span class="n">t</span>
<span class="s1">'hello world!'</span>
</pre></div>
<p>结果等同于先调用split(),把结果列表中各个单词的首字母大写,然后调用join()合并结果。</p>
<p>因为str对象已经有capitalize()方法,该函数的实际意义并不大。</p>
<h4 id="_2">模板</h4>
<p>字符串模板已经作为PEP 292的一部分增加到Python 2.4中,并得到扩展,以替代内置拼接(interpolation …</p>
<a class="readmore" href="/python3_lib_string.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python3_lib_boost.html" rel="bookmark"
title="Permalink to python3外部库boost介绍 用c++为python编写扩展">python3外部库boost介绍 用c++为python编写扩展</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-08-15T16: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.html">测试</a>.</p>
</footer><!-- /.post-info --> <ul>
<li><a href="https://china-testing.github.io/practices.html">python测试开发项目实战-目录</a></li>
<li><a href="https://china-testing.github.io/python_books.html">python工具书籍下载-持续更新</a></li>
</ul>
<h2 id="_1">概述</h2>
<p>有不同的方法来用C++扩展Python:</p>
<ul>
<li>Swig</li>
<li>使用Boost.Python,可选择使用Py++预处理</li>
<li>使用Cython。</li>
</ul>
<p>Cython出现之前,Boost.Python是编写C ++扩展模块最爽的方式。</p>
<p>Boost.Python集成在Boost C++ Libraries中。 要在Ubuntu系统上安装;</p>
<div class="highlight"><pre><span></span>$ sudo apt-get install libboost-python-dev
$ sudo apt-get install python-dev
</pre></div>
<h3 id="_2">快速入门</h3>
<p>hellomodule.cpp</p>
<div class="highlight"><pre><span></span><span class="cp">#include</span> <span class="cpf"><iostream></span><span class="cp"></span>
<span class="k">using</span> <span class="k">namespace</span> <span class="n">std</span><span class="p">;</span>
<span class="kt">void</span> <span class="nf">say_hello</span><span class="p">(</span><span class="k">const</span> <span class="kt">char</span><span class="o">*</span> <span class="n">name</span><span class="p">)</span> <span class="p">{</span>
<span class="n">cout</span> <span class="o"><<</span> <span class="s">"Hello "</span> <span class="o"><<</span> <span class="n">name</span> <span class="o"><<</span> <span class="s">"!</span><span class="se">\n</span><span class="s">"</span><span class="p">;</span>
<span class="p">}</span>
<span class="cp">#include</span> <span class="cpf"><boost/python/module.hpp …</span></pre></div>
<a class="readmore" href="/python3_lib_boost.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python3_crash1.html" rel="bookmark"
title="Permalink to python3快速入门教程1 turtle绘图-1开始">python3快速入门教程1 turtle绘图-1开始</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-08-15T12: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 --> <h2 id="_1">概述</h2>
<p>本章内容比较多,除了代码部分,其他内容可以后面回头再看。</p>
<h3 id="_2">简介</h3>
<p>Python是一门简单易学,功能强大的编程语言。它具有高效的高层次数据结构,简单但有效的方式支持面向对象编程,语法优雅,动态类型,解释执行。使之成为多数平台上很多领域的脚本和快速应用开发的理想语言。它的设计理念强调代码的可读性, 跟C ++或Java等语言比可以用更少的代码实现同样的概念。Python能清晰地实现小型和大型程序。</p>
<p>Python解释器及其丰富的标准库的源码或者二进制版本可以从<a href="http://www.python.org/">http://www.python.org/</a>免费获取和转发。该还包含很多免费的第三方Python模块、程序、工具的发布链接及附加文档。</p>
<p>Python的解释器很容易用C或C++(或其他c可以调用的语言)扩展新功能和数据类型。 Python也适用于作为定制应用的扩展语言。</p>
<p>Python支持多种编程范式,包括面向对象的,命令式和函数式或过程式编程风格。它具有动态类型系统和自动内存管理和拥有庞大而全面的标准库</p>
<p>Python虚拟机本身几乎可以在所有的作业系统中运行。使用一些诸如py2exe、PyPy、PyInstaller之类的工具可以将Python源代码转换成可以脱离Python解释器运行的程序。</p>
<p>Python的官方解释器是CPython,该解释器用C语言编写,是一个由社区驱动的自由软件,目前由Python软件基金会管理。</p>
<p>本教程向读者通俗地介绍Python语言和系统的基本概念和特点。配合Python解释器边学边练最佳,所有例子已经自包含在教程中,也可离线阅读。</p>
<p>标准对象和模块参见<a href="https://docs.python.org/2/library/index.html#library-index">The Python Standard …</a></p>
<a class="readmore" href="/python3_crash1.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/health_shouxiang_jichu.html" rel="bookmark"
title="Permalink to 手相学: 天尊山道人看相算命">手相学: 天尊山道人看相算命</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-08-08T18:20:00+08:00">
Published: 三 08 八月 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 --> <h1 id="45">手相学 - 天尊山道人看相算命</h1>
<p>手并拢,左右手正面,背面,小指侧面共六张照片,(可选:舌象、面相)。光线,自然光较好,非阳光直射。</p>
<p><img alt="image" src="https://oscimg.oschina.net/oscnet/9215903e7830e2915bee9a84bc0d94af532.jpg"></p>
<h2 id="_1">生命线</h2>
<p>生命线:由拇指与食指间之虎口部位延伸呈弧形线纹,象征生命意志及活力生命线纹若是深明清晰,强而有力的延伸环绕接近手腕处,则为体魄强健,个性执着而好胜心强,行事鲜明果决,具有企图心,也多能凭借个人不断努力,而达到自我想要的成果……</p>
<p>技术支持QQ群:中医解梦看相八字算命 391441566 草药中医手相面相看相 184175668</p>
<p>一对一商务服务微信: pythontesting, 看手相、面相、舌相、抽签、体质识别。服务费100元每人次。</p>
<p><img alt="image" src="https://oscimg.oschina.net/oscnet/2a679d5cf970bfa2291802884af0a18e5d9.jpg"></p>
<p><img alt="image" src="https://oscimg.oschina.net/oscnet/fc0120d1c1366fdc729f492da99c3416f02.jpg"></p>
<h2 id="_2">感情线</h2>
<p>感情线:是由小指的下方横亘手掌的线纹,象征个人情感,感受能力和爱情的运势。感情线纹若横向延伸至食指与中指间,则其人显得成熟稳健,用情适中,内心不会偏颇,心灵与肉体都能够兼顾,且会设身处地为对方着想,能够真诚付出自己的情感……</p>
<p><img alt="image" src="https://oscimg.oschina.net/oscnet/e5c2dc522b10ad6cf75aab8799b8454f65e.jpg"></p>
<p><img alt="image" src="https://oscimg.oschina.net/oscnet/a068d3a5a56575a6c5cc0f0ae9db593930e.jpg"></p>
<h2 id="_3">智慧线</h2>
<p>智慧线 …</p>
<a class="readmore" href="/health_shouxiang_jichu.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/testing_automation_tips.html" rel="bookmark"
title="Permalink to [雪峰磁针石博客]软件自动化测试初学者忠告">[雪峰磁针石博客]软件自动化测试初学者忠告</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-06-20T11: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/ce-shi.html">测试</a>.</p>
</footer><!-- /.post-info --> <h2 id="_1">题外话</h2>
<h3 id="_2">测试入门</h3>
<p>很多受过高等教育的大学生经常问要不要去报测试培训班来入门测试。</p>
<p>答案是否。</p>
<p>高等教育的合格毕业生要具备自学能力,如果你不具备自学能力,要好好地反省一下,为什么自己受了高等教育迷恋于各种入门级别的培训?是没有毅力还是不知道学习方法?</p>
<p>没有毅力的话,要自己多看些励志的书,多想想社会的残酷,亲人的失望等来勉励自己,毕竟企业多半也不会喜欢懒散的人的。</p>
<p>不知道学习方法的话,可以去知乎上看看,有些地方是回答得挺好的。简而言之,读《软件评测师教程》(国内软件评测师教材),《Software Testing Foundations 4th》(强烈推荐 国外测试认证ISTQB教材),《谷歌测试之道》是通常比培训机构更好地入门测试。这些测试入门书籍可以在 qq群144081101 567351477的共享找到。</p>
<p>附录:<a href="https://itbooks.pipipan.com/u/18113597/29374724">经典的软件测试基础书籍免费下载</a></p>
<p>我身边碰到比较有水平的软件测试,没有一个是什么_石、_testing、_林、_鸟、*内等入门测试的。而且这些机构经常打着包就业的名义骗人去培训,培训的老师通常口才很好,善于包装,但是关键的一点,这些老师多数自己都不是合格的测试。培训完之后有些学生重学几次又无法就业,甚至出现学生和培训机构对簿公堂的情况(这种情况通常是培训机构败诉,如果你身边有这样的被骗朋友可以建议他们先交涉不行再找律师保护自己)。</p>
<p>实体培训业尤其成为打着就业的幌子进行行骗的重灾区 …</p>
<a class="readmore" href="/testing_automation_tips.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python_weeks.html" rel="bookmark"
title="Permalink to python测试开发自学每周一练">python测试开发自学每周一练</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-05-25T11:26:00+08:00">
Published: 五 25 五月 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 --> <h1 id="table-of-contents">Table of Contents</h1>
<ul>
<li><a href="#python每周一练">python每周一练</a></li>
<li><a href="#2018-06-06 json格式转换">2018-06-06 json格式转换</a></li>
<li><a href="#2018-06-01 正则表达式及拼音排序">2018-06-01 正则表达式及拼音排序</a></li>
<li><a href="#2018-05-25-旋转图片">2018-05-25 旋转图片</a></li>
</ul>
<h1 id="python">python每周一练</h1>
<p>每周五发布python需求,所有需求都来自实际企业。下周五发布参考答案。</p>
<ul>
<li>
<p>技术支持 (可以加钉钉pythontesting邀请加入) qq群:144081101 591302926 567351477</p>
</li>
<li>
<p>道家技术-手相手诊看相中医等钉钉群21734177 qq群:391441566 184175668 338228106 看手相、面相、舌相、抽签、体质识别。服务费50元每人次起。请联系钉钉或者微信pythontesting</p>
</li>
</ul>
<p><a href="https://china-testing.github.io/testing_training.html">接口自动化性能测试数据分析人工智能从业专家一对一线上培训大纲</a></p>
<p><a href="https://china-testing.github.io/python_weeks.html">本文最新版本</a> </p>
<h3 id="2018-06-06-json">2018-06-06 json格式转换</h3>
<p>现有 人脸标注的海量数据,部分参见:<a href="https://github.com/china-testing/python-api-tesing/tree/master/weeks/2018_06_06/data">data</a></p>
<p>要求输出:
1,files.txt </p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1
2
3
4
5
6 …</pre></div></td></tr></table>
<a class="readmore" href="/python_weeks.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python_flask_autotest10.html" rel="bookmark"
title="Permalink to flask构建自动化测试平台10-模板继承和表单">flask构建自动化测试平台10-模板继承和表单</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-05-23T17:26:00+08:00">
Published: 三 23 五月 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 --> <h2 id="10-">10-模板继承和表单</h2>
<p>主要内容:</p>
<ul>
<li>添加帐户和表格</li>
<li>缩短网址</li>
<li>添加帐户和表格</li>
<li>添加处理注意请求的功能</li>
<li>通过WTForms添加用户反馈</li>
</ul>
<p>技术支持QQ群: 144081101 591302926 567351477</p>
<p><a href="https://china-testing.github.io/testing_training.html">接口自动化性能测试数据分析人工智能从业专家一对一线上培训大纲</a></p>
<p><a href="https://china-testing.github.io/python_flask_autotest10.html">本文最新版本</a> </p>
<h3 id="bootstrap">bootstrap</h3>
<p>Bootstrap是来自Twitter的开源框架,它提供了用户界面组件以创造简洁并有吸引力的网页并兼容所有现在的网络浏览器。参考资料:<a href="https://baike.so.com/doc/5866541-7589096.html">bootstrap</a> <a href="https://en.wikipedia.org/wiki/Bootstrap_(front-end_framework)">wikipedia</a> <a href="http://getbootstrap.com/">主页</a> <a href="https://getbootstrap.com/docs/3.3/getting-started/">入门</a> <a href="https://getbootstrap.com/docs/3.3/components/">组件</a></p>
<p><a href="http://getbootstrap.com/getting-started/#download">下载</a>,解压文件到static。</p>
<p>我们将采用<a href="https://getbootstrap.com/docs/3.3/examples/jumbotron/">模板</a></p>
<h3 id="_1">账户管理</h3>
<p><a href="https://flask-login.readthedocs.org/en/latest/">flask-login</a></p>
<p>user.py</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">User</span><span class="p">:</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self …</span></pre></div></td></tr></table>
<a class="readmore" href="/python_flask_autotest10.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python_flask_autotest8.html" rel="bookmark"
title="Permalink to flask构建自动化测试平台8-验证用户输入">flask构建自动化测试平台8-验证用户输入</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-05-22T16:26: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/ce-shi-kuang-jia.html">测试框架</a>.</p>
</footer><!-- /.post-info --> <h2 id="8-">8-验证用户输入</h2>
<p>正在紧张整理中</p>
<a class="readmore" href="/python_flask_autotest8.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python_flask_autotest9.html" rel="bookmark"
title="Permalink to flask构建自动化测试平台9-点餐应用">flask构建自动化测试平台9-点餐应用</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-05-22T16:26: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/ce-shi-kuang-jia.html">测试框架</a>.</p>
</footer><!-- /.post-info --> <h2 id="9-">9-点餐应用</h2>
<p>主要内容:</p>
<ul>
<li>bootstrap</li>
<li>账户管理</li>
</ul>
<p>技术支持QQ群: 144081101 591302926 567351477</p>
<p><a href="https://china-testing.github.io/testing_training.html">接口自动化性能测试数据分析人工智能从业专家一对一线上培训大纲</a></p>
<p><a href="https://china-testing.github.io/python_flask_autotest9.html">本文最新版本</a> </p>
<h3 id="bootstrap">bootstrap</h3>
<p>Bootstrap是来自Twitter的开源框架,它提供了用户界面组件以创造简洁并有吸引力的网页并兼容所有现在的网络浏览器。参考资料:<a href="https://baike.so.com/doc/5866541-7589096.html">bootstrap</a> <a href="https://en.wikipedia.org/wiki/Bootstrap_(front-end_framework)">wikipedia</a> <a href="http://getbootstrap.com/">主页</a> <a href="https://getbootstrap.com/docs/3.3/getting-started/">入门</a> <a href="https://getbootstrap.com/docs/3.3/components/">组件</a></p>
<p><a href="http://getbootstrap.com/getting-started/#download">下载</a>,解压文件到static。</p>
<p>我们将采用<a href="https://getbootstrap.com/docs/3.3/examples/jumbotron/">模板</a></p>
<h3 id="_1">账户管理</h3>
<p><a href="https://flask-login.readthedocs.org/en/latest/">flask-login</a></p>
<p>user.py</p>
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15</pre></div></td><td class="code"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">User</span><span class="p">:</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">email</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">email …</span></pre></div></td></tr></table>
<a class="readmore" href="/python_flask_autotest9.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="/python_flask_autotest6.html" rel="bookmark"
title="Permalink to flask构建自动化测试平台6-交互式犯罪地图">flask构建自动化测试平台6-交互式犯罪地图</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<abbr class="published" title="2018-05-22T11:26: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/ce-shi-kuang-jia.html">测试框架</a>.</p>
</footer><!-- /.post-info --> <h2 id="6-">6-交互式犯罪地图</h2>
<p>本章将介绍以下主题:</p>
<ul>
<li>mysql</li>
<li>创建犯罪地图</li>
</ul>
<p><a href="https://china-testing.github.io/python_flask_autotest6.html">本文最新版本</a>
<a href="https://github.com/china-testing/python-api-tesing/tree/master/flask/flask_web_service/Chapter06">代码地址</a></p>
<p>安装mysql</p>
<p>```#!sh</p>
<h1 id="apt-get-install-mysql-server">apt-get install mysql-server</h1>
<h1 id="pip3-install-pymysql">pip3 install pymysql</h1>
<h1 id="python-db_setuppy">python db_setup.py # 创建数据库</h1>
<div class="highlight"><pre><span></span>dbconfig.py
```#!python
test = False
db_user = 'root'
db_password = '654321_'
</pre></div>
<p>db_setup.py</p>
<p>```#!python</p>
<p>import pymysql
import dbconfig
connection = pymysql.connect(host='localhost',
user=dbconfig.db_user,
passwd=dbconfig.db_password)</p>
<p>try:
with connection.cursor() as …</p>
<a class="readmore" href="/python_flask_autotest6.html">read more</a>
</div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
<p class="paginator">
<a href="/index13.html">«</a>
Page 14 / 21
<a href="/index15.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>