-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
333 lines (299 loc) · 13.8 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
<!DOCTYPE html>
<html lang="Chinese">
<head><meta name="generator" content="Hexo 3.8.0"><meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
<meta name="theme-color" content="#f8f5ec">
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">
<meta name="description" content="一只USTC菜鸟"><meta name="keywords" content="Geophysics"><link rel="alternate" href="/default" title="Zhuanghua"><link rel="shortcut icon" type="image/x-icon" href="/favicon_rain.ico?v=2.11.0">
<link rel="canonical" href="http://yoursite.com/">
<link rel="stylesheet" type="text/css" href="/lib/fancybox/jquery.fancybox.css"><link rel="stylesheet" type="text/css" href="/lib/nprogress/nprogress.min.css"><script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<link rel="stylesheet" type="text/css" href="/css/style.css?v=2.11.0">
<script id="baidu_push">
(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>
<script>
window.config = {"leancloud":{"app_id":null,"app_key":null},"toc":true,"fancybox":true,"pjax":true,"latex":true};
</script>
<title>Zhuanghua</title>
</head>
<body><div id="mobile-navbar" class="mobile-navbar">
<div class="mobile-header-logo">
<a href="/." class="logo">Zhuanghua</a>
</div>
<div class="mobile-navbar-icon">
<span></span>
<span></span>
<span></span>
</div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
<ul class="mobile-menu-list"><a href="/">
<li class="mobile-menu-item">首页
</li>
</a><a href="/archives/">
<li class="mobile-menu-item">归档
</li>
</a><a href="/tags/">
<li class="mobile-menu-item">标签
</li>
</a><a href="/categories/">
<li class="mobile-menu-item">分类
</li>
</a><a href="/about/">
<li class="mobile-menu-item">关于
</li>
</a></ul>
</nav>
<div class="container" id="mobile-panel">
<header id="header" class="header"><div class="logo-wrapper">
<a href="/." class="logo">Zhuanghua</a>
</div>
<nav class="site-navbar"><ul id="menu" class="menu"><li class="menu-item">
<a class="menu-item-link" href="/">
首页
</a>
</li>
<li class="menu-item">
<a class="menu-item-link" href="/archives/">
归档
</a>
</li>
<li class="menu-item">
<a class="menu-item-link" href="/tags/">
标签
</a>
</li>
<li class="menu-item">
<a class="menu-item-link" href="/categories/">
分类
</a>
</li>
<li class="menu-item">
<a class="menu-item-link" href="/about/">
关于
</a>
</li>
</ul></nav>
</header>
<main id="main" class="main">
<div class="content-wrapper">
<div id="content" class="content"><section id="posts" class="posts"><article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/17/Python-对象名称中的下划线/">Python 对象名称中的下划线</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-08-17
</span></div>
</header>
<div class="post-content"><h1 id="单下划线"><a href="#单下划线" class="headerlink" title="单下划线"></a>单下划线</h1><blockquote>
<p>那种仅限从一个对象内部访问的“私有”实例变量在 Python 中并不存在。 但是,大多数 Python 代码都遵循这样一个约定:带有一个下划线的名称 (例如 _spam) 应该被当作是 API 的非仅供部分。</p>
</blockquote>
<div class="read-more">
<a href="/2019/08/17/Python-对象名称中的下划线/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/17/TCP-的三次握手和四次挥手/">TCP 的三次握手和四次挥手</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-08-17
</span></div>
</header>
<div class="post-content"><p>TCP 创建过程和链接折除过程是由 TCP/IP 协议栈自动创建的,对于理解 TCP 底层运作机制,相当有帮助。</p>
<div class="read-more">
<a href="/2019/08/17/TCP-的三次握手和四次挥手/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/15/怎么才能写出无-Bug-的代码/">怎么才能写出无 Bug 的代码</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-08-15
</span></div>
</header>
<div class="post-content"><blockquote>
<p>想必每一个码农都有一个追求,那就是很轻松地写出没有 Bug 的代码。</p>
</blockquote>
<div class="read-more">
<a href="/2019/08/15/怎么才能写出无-Bug-的代码/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/14/Python常用魔法函数/">Python常用魔法函数</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-08-14
</span></div>
</header>
<div class="post-content"><blockquote>
<p>这篇博客整理了一下常用的 Python 魔法函数</p>
</blockquote>
<div class="read-more">
<a href="/2019/08/14/Python常用魔法函数/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/08/14/Python中进制转换与位操作/">Python中进制转换与位操作</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-08-14
</span></div>
</header>
<div class="post-content"><h1 id="Python中的进制表示"><a href="#Python中的进制表示" class="headerlink" title="Python中的进制表示"></a>Python中的进制表示</h1><p>计算机中的数都是使用二进制表示的,Python中数字加前缀$0b$,表示是二进制,类似的八进制和十六进制的前缀分别为 $0o$ 和 $0x$。</p>
<div class="read-more">
<a href="/2019/08/14/Python中进制转换与位操作/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/29/Python实现二叉树重建/">Python实现二叉树重建</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-07-29
</span></div>
</header>
<div class="post-content"><p>通常树有如下几种遍历方式:</p>
<ul>
<li>前序遍历:先访问根结点,再访问左子结点,最后访问右子结点。</li>
<li>中序遍历:先访问左子结点,再访问根结点,最后访问右子结点。</li>
<li>后序遍历:先访问左子结点,再访问右子结点,最后访问根结点。</li>
<li>层序遍历:即广度优先遍历,先访问一级节点,后是二级节点…</li>
</ul>
<div class="read-more">
<a href="/2019/07/29/Python实现二叉树重建/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/24/Python实现二叉树及遍历/">Python实现二叉树及其遍历</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-07-24
</span></div>
</header>
<div class="post-content"><blockquote>
<p>树结构多种多样,不过最常用的还是二叉树。顾名思义,二叉树每个节点最多有两个叉,也就是两个子节点,分别是左子节点和右子节点。</p>
</blockquote>
<div align="center"><img src="/2019/07/24/Python实现二叉树及遍历/二叉树2.png" width="300"></div>
<div class="read-more">
<a href="/2019/07/24/Python实现二叉树及遍历/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/22/Mac-终端-PS1-变量配置/">Mac 终端 PS1 变量配置</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-07-22
</span></div>
</header>
<div class="post-content"><blockquote>
<p>默认的终端提示符像这样<strong>zhangsan@zhangsandeMacBook-Pro ~$</strong>,又长又俗,丑到爆,所以我们有必要配置一下终端的命令提示符,顿时就会感觉清爽了很多!</p>
</blockquote>
<p>先来看一下效果图</p>
<div class="read-more">
<a href="/2019/07/22/Mac-终端-PS1-变量配置/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/16/Python散列表/">Python散列表</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-07-16
</span></div>
</header>
<div class="post-content"><blockquote>
<p>散列表</p>
</blockquote>
<p>散列表是一种数据的集合,其中的每个数据都通过某种特定的方式进行存储以方面日后的查找。基于它的搜索算法的时间复杂度为O(1)。散列表的每一个位置叫做<em>槽</em>,能够存放一个数据项,并以从0开始递增的整数命名。例如, 第一个槽记为0,下一个记为1,再下一个记为2,并以此类推。在初始条件下,散列表中是没有任何数据的,即每个槽都是空的。某个数据项与在散列表中存储它的槽之间的映射叫做<em>散列函数</em>。一般地,我们把槽被占据的比例叫做<em>负载因子</em>,两个甚至多个数据需要存储在同一个槽中,这种情况被称为<em>冲突</em>。</p>
<div class="read-more">
<a href="/2019/07/16/Python散列表/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<article class="post">
<header class="post-header">
<h1 class="post-title"><a class="post-link" href="/2019/07/14/Python搜索/">Python搜索</a>
</h1>
<div class="post-meta">
<span class="post-time">
2019-07-14
</span></div>
</header>
<div class="post-content"><blockquote>
<p>搜索</p>
</blockquote>
<p>在Python中,有一个非常简单的方法来判别特定项是否在列表中。我们使用in这个运算符。但为了说明这些搜索算法的工作原理以及它们相互比较时的优劣之分,我们还是自己实现这些算法。</p>
<div class="read-more">
<a href="/2019/07/14/Python搜索/" class="read-more-link">阅读更多</a>
</div>
</div></article>
<nav class="pagination"><a class="next" href="/page/2/">
<span class="next-text">下一页</span>
<i class="iconfont icon-right"></i>
</a>
</nav></section></div></div>
</main>
<footer id="footer" class="footer"><div class="social-links"><a href="mailto:lupanlpb@163.com" class="iconfont icon-email" title="email"></a>
<a href="https://github.com/lupanlpb" class="iconfont icon-github" title="github"></a>
<a href="https://www.zhihu.com/people/zhuang-hua-63/activities" class="iconfont icon-zhihu" title="zhihu"></a>
<a href="/atom.xml" class="iconfont icon-rss" title="rss"></a>
</div><div class="copyright">
<span class="power-by">
由 <a class="hexo-link" href="https://hexo.io/">Hexo</a> 强力驱动
</span>
<span class="division">|</span>
<span class="theme-info">
主题 -
<a class="theme-link" href="https://github.com/ahonn/hexo-theme-even">Even</a>
</span>
<span class="copyright-year">©2015 - 2019<span class="heart">
<i class="iconfont icon-heart"></i>
</span>
<span class="author">Zhuanghua</span>
</span>
</div>
</footer>
<div class="back-to-top" id="back-to-top">
<i class="iconfont icon-up"></i>
</div>
</div><script type="text/javascript" src="/lib/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/lib/slideout/slideout.js"></script>
<script type="text/javascript" src="/lib/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="/lib/pjax/jquery.pjax.min.js"></script>
<script type="text/javascript" src="/lib/nprogress/nprogress.min.js"></script>
<script type="text/javascript" src="/js/src/even.js?v=2.11.0"></script>
</body>
</html>