-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
636 lines (441 loc) · 19.3 KB
/
index.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
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hexo</title>
<meta name="keywords" content="">
<meta name="description" content="Hexo">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Python全栈学习中的踩坑记录1.如何安装最新Nginx?123yum -y install epel-releaseyum updateyum -y install nginx 2.如何安装pip2?1yum -y install python-pip">
<meta name="keywords" content="python,踩坑记录">
<meta property="og:type" content="article">
<meta property="og:title" content="Python踩坑记录">
<meta property="og:url" content="http://xiaoyuan2019.github.io/2019/11/22/Python%E5%85%A8%E6%A0%88%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/index.html">
<meta property="og:site_name" content="Hexo">
<meta property="og:description" content="Python全栈学习中的踩坑记录1.如何安装最新Nginx?123yum -y install epel-releaseyum updateyum -y install nginx 2.如何安装pip2?1yum -y install python-pip">
<meta property="og:locale" content="zh-cn">
<meta property="og:updated_time" content="2019-11-22T09:26:09.399Z">
<meta name="twitter:card" content="summary">
<link rel="icon" href="/img/avatar.jpg">
<link href="/css/style.css?v=1.0.1" rel="stylesheet">
<link href="/css/hl_theme/atom-light.css?v=1.0.1" rel="stylesheet">
<link href="//cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">
<link href="//cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="/js/jquery.autocomplete.min.js?v=1.0.1" ></script>
<script src="//cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script src="//cdn.bootcss.com/nprogress/0.2.0/nprogress.min.js"></script>
<script src="//cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js" ></script>
<script src="/js/iconfont.js?v=1.0.1" ></script>
</head>
<div style="display: none">
<input class="theme_disqus_on" value="false">
<input class="theme_preload_comment" value="false">
<input class="theme_blog_path" value="">
</div>
<body>
<aside class="nav mobile">
<div class="nav-left">
<a href="/" class="avatar_target">
<img class="avatar" src="/img/avatar.jpg" />
</a>
<div class="author">
<span>Xiao Yuan</span>
</div>
<div class="icon">
<a title="rss" href="/atom.xml" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-rss"></use>
</svg>
</a>
<a title="github" href="https://github.com/yelog" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-github"></use>
</svg>
</a>
<a title="facebook" href="https://www.facebook.com/faker.tops" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-facebook"></use>
</svg>
</a>
<a title="instagram" href="https://www.facebook.com/faker.tops" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-instagram"></use>
</svg>
</a>
<a title="reddit" href="https://www.reddit.com/user/yelog/" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-reddit"></use>
</svg>
</a>
<a title="weibo" href="http://weibo.com/u/2307534817" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-weibo"></use>
</svg>
</a>
<a title="jianshu" href="https://www.jianshu.com/u/ff56736de7cf" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-jianshu"></use>
</svg>
</a>
<a title="zhihu" href="https://www.zhihu.com/people/jaytp/activities" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-zhihu"></use>
</svg>
</a>
<a title="oschina" href="https://my.oschina.net/yelog" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-oschina"></use>
</svg>
</a>
<a title="email" href="mailto:[email protected]" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-email"></use>
</svg>
</a>
<a title="qq" href="http://wpa.qq.com/msgrd?v=3&uin=872336115&site=qq&menu=yes" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-qq"></use>
</svg>
</a>
<a title="kugou" href="https://www.kugou.com/" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-kugou"></use>
</svg>
</a>
<a title="neteasemusic" href="https://music.163.com/#/user/home?id=88151013" target="_blank">
<svg class="iconfont-svg" aria-hidden="true">
<use xlink:href="#icon-neteasemusic"></use>
</svg>
</a>
</div>
<ul>
<li><div class="all active">全部文章<small>(2)</small></div></li>
<li><div data-rel="MySQL">MySQL<small>(1)</small></div>
</li>
<li><div data-rel="Python">Python<small>(1)</small></div>
</li>
</ul>
<div class="left-bottom">
<div class="menus">
</div>
<div><a class="about hasFriend site_url" href="/about">关于</a><a style="width: 50%" class="friends">友链</a></div>
</div>
<input type="hidden" id="yelog_site_posts_number" value="2">
<div style="display: none">
<span id="busuanzi_value_site_uv"></span>
<span id="busuanzi_value_site_pv"></span>
</div>
</div>
<div class="nav-right">
<div class="friends-area">
<div class="friends-title">
友情链接
<i class="back-title-list"></i>
</div>
<div class="friends-content">
<ul>
<li><a target="_blank" href="http://yelog.org/">叶落阁</a></li>
</ul>
</div>
</div>
<div class="title-list">
<form onkeydown="if(event.keyCode==13){return false;}">
<input class="search" type="text" placeholder="Search..." autocomplete="off"id="local-search-input" >
<i class="cross"></i>
<span>
<label for="tagswitch">Tags:</label>
<input id="tagswitch" type="checkbox" style="display: none" />
<i id="tagsWitchIcon"></i>
</span>
</form>
<div class="tags-list">
<li class="article-tag-list-item">
<a class="color1">mysql</a>
</li>
<li class="article-tag-list-item">
<a class="color3">数据库基础命令</a>
</li>
<li class="article-tag-list-item">
<a class="color2">python</a>
</li>
<li class="article-tag-list-item">
<a class="color5">踩坑记录</a>
</li>
<div class="clearfix"></div>
</div>
<nav id="title-list-nav">
<a class="Python "
href="/2019/11/22/Python%E5%85%A8%E6%A0%88%E8%B8%A9%E5%9D%91%E8%AE%B0%E5%BD%95/"
data-tag="python,踩坑记录"
data-author="" >
<span class="post-title" title="Python踩坑记录">Python踩坑记录</span>
<span class="post-date" title="2019-11-22 16:37:46">2019/11/22</span>
</a>
<a class="MySQL "
href="/2019/11/22/%E6%95%B0%E6%8D%AE%E5%BA%93MySQL%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/"
data-tag="mysql,数据库基础命令"
data-author="" >
<span class="post-title" title="数据库MySQL操作">数据库MySQL操作</span>
<span class="post-date" title="2019-11-22 16:05:30">2019/11/22</span>
</a>
</nav>
</div>
</div>
<div class="hide-list">
<div class="semicircle">
<div class="brackets first"><</div>
<div class="brackets">></div>
</div>
</div>
</aside>
<div class="post index">
<div class="pjax">
<article class="index">
<div class="toc-ref">
<ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#Why-Blog"><span class="toc-text">Why Blog</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#对博客的理解"><span class="toc-text">对博客的理解</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#关于叶落阁"><span class="toc-text">关于叶落阁</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#博客平台"><span class="toc-text">博客平台</span></a></li></ol></li></ol>
<style>
.left-col .switch-btn,
.left-col .switch-area {
display: none;
}
.toc-level-3 i,
.toc-level-3 ol {
display: none !important;
}
</style>
</div>
<h1 id="Why-Blog"><a href="#Why-Blog" class="headerlink" title="Why Blog"></a>Why Blog</h1><h2 id="对博客的理解"><a href="#对博客的理解" class="headerlink" title="对博客的理解"></a>对博客的理解</h2><p>喜欢写Blog的人,会经历三个阶段。</p>
<blockquote>
<p>第一阶段,刚接触Blog,觉得很新鲜,试着选择一个免费空间来写。</p>
</blockquote>
<blockquote>
<p>第二阶段,发现免费空间限制太多,就自己购买域名和空间,搭建独立博客。</p>
</blockquote>
<blockquote>
<p>第三阶段,觉得独立博客的管理太麻烦,最好在保留控制权的前提下,让别人来管,自己只负责写文章。</p>
</blockquote>
<p>我们每个人的在网络上产生的数据越来越多,这些信息是我们在互联网上存在过的痕迹,值得我们认真对待。但是它们被分散分布在各个网站上。很多时候我们很难将它们聚合在一起,而且各个网站的信息排布方式也没有办法自由控制,所以我们需要一个可以由自己主宰的空间——博客。</p>
<p>通过博客,我们可以记录自己的生活和成长的轨迹。它不像 Twitter 那样碎片化,也不像 Facebook 那样关系化,它是私人的空间。</p>
<h2 id="关于叶落阁"><a href="#关于叶落阁" class="headerlink" title="关于叶落阁"></a>关于叶落阁</h2><p><strong>叶落阁</strong> 是阿杰(杨玉杰)的个人站。</p>
<p>到目前为止已经写了<code class="article_number"></code>篇文章, 共<code class="site_word_count"></code>字。</p>
<p>本站访问人数:<code class="site_uv"></code>人次 , 访问量:<code class="site_pv"></code>次</p>
<h2 id="博客平台"><a href="#博客平台" class="headerlink" title="博客平台"></a>博客平台</h2><p>这个博客通过 <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a> 生成,部署在 <a href="https://pages.github.com/" target="_blank" rel="noopener">GitHub Pages</a>,主题 <a href="https://github.com/yelog/hexo-theme-3-hexo" target="_blank" rel="noopener">3-hexo</a> 已经在github上开源</p>
<p>主要功能:</p>
<ul>
<li>搜索支持文章标题、标签(#标签)、作者(@作者)</li>
<li>pad/手机等移动端适配</li>
<li>页面全局快捷键 <a href='http://yelog.org/2017/03/24/3-hexo-shortcuts/' target="_blank" rel="noopener">3-hexo快捷键说明</a></li>
</ul>
</article>
<p>
<a class="dashang" onclick="dashangToggle()">赏</a>
</p>
</div>
<div class="copyright">
<p class="footer-entry">©2016-2019 Yelog</p>
<p class="footer-entry">Built with <a href="https://hexo.io/" target="_blank">Hexo</a> and <a href="https://github.com/yelog/hexo-theme-3-hexo" target="_blank">3-hexo</a> theme</p>
</div>
<div class="full-toc">
<button class="full"><span class="min "></span></button>
<button class="post-toc-menu"><span class="post-toc-menu-icons"></span></button>
<div class="post-toc"><span class="post-toc-title">目录</span>
<div class="post-toc-content">
</div>
</div>
<a class="" id="rocket" ></a>
</div>
</div>
<div class="acParent"></div>
<div class="hide_box" onclick="dashangToggle()"></div>
<div class="shang_box">
<a class="shang_close" onclick="dashangToggle()">×</a>
<div class="shang_tit">
<p>喜欢就点赞,疼爱就打赏</p>
</div>
<div class="shang_payimg">
<div class="pay_img">
<img src="/img/alipay.jpg" class="alipay" title="扫码支持">
<img src="/img/weixin.jpg" class="weixin" title="扫码支持">
</div>
</div>
<div class="shang_payselect">
<span><label><input type="radio" name="pay" checked value="alipay">支付宝</label></span><span><label><input type="radio" name="pay" value="weixin">微信</label></span>
</div>
</div>
</body>
<script src="/js/jquery.pjax.js?v=1.0.1" ></script>
<script src="/js/script.js?v=1.0.1" ></script>
<script>
var img_resize = 'default';
/*作者、标签的自动补全*/
$(function () {
$('.search').AutoComplete({
'data': ['#mysql','#数据库基础命令','#python','#踩坑记录',],
'itemHeight': 20,
'width': 418
}).AutoComplete('show');
})
function initArticle() {
/*渲染对应的表格样式*/
$(".post .pjax table").addClass("green_title");
/*渲染打赏样式*/
$("input[name=pay]").on("click", function () {
if($("input[name=pay]:checked").val()=="weixin"){
$(".shang_box .shang_payimg .pay_img").addClass("weixin_img");
} else {
$(".shang_box .shang_payimg .pay_img").removeClass("weixin_img");
}
})
/*高亮代码块行号*/
$('pre code').each(function(){
var lines = $(this).text().split('\n').length - 1, widther='';
if (lines>99) {
widther = 'widther'
}
var $numbering = $('<ul/>').addClass('pre-numbering ' + widther).attr("unselectable","on");
$(this).addClass('has-numbering ' + widther)
.parent()
.append($numbering);
for(var i=1;i<=lines;i++){
$numbering.append($('<li/>').text(i));
}
});
/*访问数量*/
$.getScript("//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js");
/*代码高亮,行号对齐*/
$('.pre-numbering').css('line-height',$('.has-numbering').css('line-height'));
}
/*打赏页面隐藏与展示*/
function dashangToggle() {
$(".shang_box").fadeToggle();
$(".hide_box").fadeToggle();
}
</script>
<!--加入行号的高亮代码块样式-->
<style>
pre{
position: relative;
margin-bottom: 24px;
border-radius: 10px;
border: 1px solid #e2dede;
background: #FFF;
overflow: hidden;
}
code.has-numbering{
margin-left: 30px;
}
code.has-numbering.widther{
margin-left: 35px;
}
.pre-numbering{
margin: 0px;
position: absolute;
top: 0;
left: 0;
width: 20px;
padding: 0.5em 3px 0.7em 5px;
border-right: 1px solid #C3CCD0;
text-align: right;
color: #AAA;
background-color: #fafafa;
}
.pre-numbering.widther {
width: 35px;
}
</style>
<!--自定义样式设置-->
<style>
.nav {
width: 542px;
}
.nav.fullscreen {
margin-left: -542px;
}
.nav-left {
width: 120px;
}
@media screen and (max-width: 1468px) {
.nav {
width: 492px;
}
.nav.fullscreen {
margin-left: -492px;
}
.nav-left {
width: 100px;
}
}
@media screen and (max-width: 1024px) {
.nav {
width: 492px;
margin-left: -492px
}
.nav.fullscreen {
margin-left: 0;
}
.nav .hide-list.fullscreen {
left: 492px
}
}
@media screen and (max-width: 426px) {
.nav {
width: 100%;
}
.nav-left {
width: 100%;
}
}
.nav-right .title-list nav a .post-title, .nav-right .title-list #local-search-result a .post-title {
color: #383636;
}
.nav-right .title-list nav a .post-date, .nav-right .title-list #local-search-result a .post-date {
color: #5e5e5f;
}
.nav-right nav a.hover, #local-search-result a.hover{
background-color: #e2e0e0;
}
/*列表样式*/
.post .pjax article .article-entry>ol, .post .pjax article .article-entry>ul, .post .pjax article>ol, .post .pjax article>ul{
border: #e2dede solid 1px;
border-radius: 10px;
padding: 10px 32px 10px 56px;
}
.post .pjax article .article-entry li>ol, .post .pjax article .article-entry li>ul,.post .pjax article li>ol, .post .pjax article li>ul{
padding-top: 5px;
padding-bottom: 5px;
}
.post .pjax article .article-entry>ol>li, .post .pjax article .article-entry>ul>li,.post .pjax article>ol>li, .post .pjax article>ul>li{
margin-bottom: auto;
margin-left: auto;
}
.post .pjax article .article-entry li>ol>li, .post .pjax article .article-entry li>ul>li,.post .pjax article li>ol>li, .post .pjax article li>ul>li{
margin-bottom: auto;
margin-left: auto;
}
/* 背景图样式 */
/*引用块样式*/
/*文章列表背景图*/
.nav-right:before {
content: ' ';
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.3;
background: url("https://i.loli.net/2019/07/22/5d3521411f3f169375.png");
background-repeat: no-repeat;
background-position: 50% 0;
-ms-background-size: cover;
-o-background-size: cover;
-moz-background-size: cover;
-webkit-background-size: cover;
background-size: cover;
}
</style>
</html>