-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
297 lines (233 loc) · 46.4 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
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>这里是文耀的space - wenyao'space</title><meta name="author" content="崔文耀"><meta name="copyright" content="崔文耀"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="Hello, here is wenyao's space, how do you come in???">
<meta property="og:type" content="website">
<meta property="og:title" content="这里是文耀的space">
<meta property="og:url" content="http://myblog.cuimouren.cn/index.html">
<meta property="og:site_name" content="这里是文耀的space">
<meta property="og:description" content="Hello, here is wenyao's space, how do you come in???">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png">
<meta property="article:author" content="崔文耀">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://myblog.cuimouren.cn/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: undefined,
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '',
date_suffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: undefined,
lightbox: 'fancybox',
Snackbar: undefined,
source: {
jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
justifiedGallery: {
js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
},
fancybox: {
js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
}
},
isPhotoFigcaption: false,
islazyload: false,
isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: '这里是文耀的space',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2021-09-10 09:33:38'
}</script><noscript><style type="text/css">
#nav {
opacity: 1
}
.justified-gallery img {
opacity: 1
}
#recent-posts time,
#post-meta time {
display: inline !important
}
</style></noscript><script>(win=>{
win.saveToLocal = {
set: function setWithExpiry(key, value, ttl) {
if (ttl === 0) return
const now = new Date()
const expiryDay = ttl * 86400000
const item = {
value: value,
expiry: now.getTime() + expiryDay,
}
localStorage.setItem(key, JSON.stringify(item))
},
get: function getWithExpiry(key) {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = new Date()
if (now.getTime() > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = url => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
document.head.appendChild(script)
})
win.activateDarkMode = function () {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
win.activateLightMode = function () {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
if (t === 'dark') activateDarkMode()
else if (t === 'light') activateLightMode()
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
if (asideStatus === 'hide') {
document.documentElement.classList.add('hide-aside')
} else {
document.documentElement.classList.remove('hide-aside')
}
}
})(window)</script><meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="这里是文耀的space" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">文章</div><div class="length-num">56</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">标签</div><div class="length-num">62</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">分类</div><div class="length-num">41</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">这里是文耀的space</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/09/10/linux-%E7%AE%A1%E9%81%93-%E9%87%8D%E5%AE%9A%E5%90%91-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/" title="linux 管道 重定向 环境变量"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="linux 管道 重定向 环境变量"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/10/linux-%E7%AE%A1%E9%81%93-%E9%87%8D%E5%AE%9A%E5%90%91-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/" title="linux 管道 重定向 环境变量">linux 管道 重定向 环境变量</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-10T00:38:47.000Z" title="发表于 2021-09-10 08:38:47">2021-09-10</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/linux/">linux</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/linux/%E7%AE%A1%E9%81%93-%E9%87%8D%E5%AE%9A%E5%90%91-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/">管道 重定向 环境变量</a></span></div><div class="content">linux 管道 重定向 环境变量输入输出重定向简单来讲,输入重定向就是将文件导入到命令中。输出重定向即将原本要输出到屏幕上的信息输出到指定文件中。
标准输入重定向 STDIN 文件描述符为 0 默认从键盘输入
标准输出重定向 STDOUT 文件描述符为 1 默认输出到屏幕
错误输出重定向 STDERR 文件描述符为 2 默认输出到屏幕
STDIO输入重定向中的符号及其作用
符号
作用
命令 < 文件
将文件作为命令的标准输入
命令 << 分界符
从标准输入中读取 知道遇见分界符
命令 < 文件1 > 文件2
将文件1作为命令的标准输入并将标准输出到文件2中
STDOUT输入重定向中的符号及其作用
符号
作用
命令 > 文件
将标准输出重定向到一个文件中(清空原有文件的数据)
命令 2> 文件
将错误输出重定向到一个文件中(清空原有文件的数据)
命令 >> 文件
将标准输出重定向到一个文件中(追加到原有内容的后面)
命令 2>> 文件
将错误输出重定向到一个文件中(追加 ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2021/09/04/docker-learn-4-%E7%BD%91%E7%BB%9C/" title="docker learn 4 网络"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 4 网络"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/04/docker-learn-4-%E7%BD%91%E7%BB%9C/" title="docker learn 4 网络">docker learn 4 网络</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-04T06:57:39.000Z" title="发表于 2021-09-04 14:57:39">2021-09-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/linux/">linux</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/linux/docker/">docker</a></span></div><div class="content">docker learn 4 网络docker允许通过端口映射的方式实现外部网络访问。容器之间也可以实现网络互联。
外部访问容器12345678910111213# -p 的格式如下 ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort# -p 指定主机端口1000映射至容器端口80 可以多次使用 -p 来指定多个映射docker run -d -p 1000:80 nginx # 这时候可以在主机中使用nginx的反向代理将某sever来的流量转发至1000端口,继而转发到容器的80端口,实现访问。nginx中的配置如下server { server_name sing.cuimouren.cn; location / { proxy_pass http://localhost:1000/; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgra ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/09/04/docker-learn-3-%E6%95%B0%E6%8D%AE%E7%AE%A1%E7%90%86/" title="docker learn 3 数据管理"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 3 数据管理"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/04/docker-learn-3-%E6%95%B0%E6%8D%AE%E7%AE%A1%E7%90%86/" title="docker learn 3 数据管理">docker learn 3 数据管理</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-04T06:18:46.000Z" title="发表于 2021-09-04 14:18:46">2021-09-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/linux/">linux</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/linux/docker/">docker</a></span></div><div class="content">docker learn 3 数据管理在容器中管理数据主要有以下两种方式:数据卷volumes和挂载主机目录bind mounts
数据卷的使用类似于linux系统中对目录或者文件按进行mount,镜像中指定为挂载点的目录中的文件会被隐藏掉可以显示的是挂载的数据卷
1234567891011#创建一个数据卷docker volume create myvolumedocker volume lsdocker volume rmdocker volume inspect [volume name]#启动一个容器,并加载数据卷到容器的指定目录docker run -it --mount source=myvolume,target=/webapp ubuntu:20.04 bash#上面这条命令将target指定的容器中的/webapp目录为myvolume在该容器内的挂载点。容器中任何对/webapp的操作都会直接作用于myvolume。#假如有两个容器同时挂载了myvolume,则加入容器a想其中新建了一个文件file则容器2也可以在他的/webapp目录下找到这个file。#vol ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2021/09/04/docker-learn-2-%E5%AE%B9%E5%99%A8/" title="docker learn 2 容器"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 2 容器"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/04/docker-learn-2-%E5%AE%B9%E5%99%A8/" title="docker learn 2 容器">docker learn 2 容器</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-04T03:41:30.000Z" title="发表于 2021-09-04 11:41:30">2021-09-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/linux/">linux</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/linux/docker/">docker</a></span></div><div class="content">docker learn 2 容器简单来讲,容器是独立运行的一个或者一组应用,以及他们的运行环境。
容器基本操作12345678910#容器基本操作docker container lsdocker container prune #删除处于终止态的容器docker container logsdocker container stopdocker container startdocker container resatrtdocker container rmdocker attach [container id/name]docker exec [option] <container id/name> <CMD>
基于镜像新建一个容器并启动 docker run
启动终止态的容器
docker run常用参数
1234-i 让容器的标准输入保持打开-t 打开一个伪终端并绑定在容器的标准输入上-d 让容器在后台执行而不是将结果打印在当前的宿主机上,想要获取容器输出可以使用 docker container logs [container id or n ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/09/03/docker-learn-1-%E9%95%9C%E5%83%8F/" title="docker learn 1 镜像"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 1 镜像"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/09/03/docker-learn-1-%E9%95%9C%E5%83%8F/" title="docker learn 1 镜像">docker learn 1 镜像</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-09-03T12:19:26.000Z" title="发表于 2021-09-03 20:19:26">2021-09-03</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/linux/">linux</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/linux/docker/">docker</a></span></div><div class="content">docker learn 1 镜像docker相关概念镜像 image对于linux系统来讲,在启动的时候会挂在root文件系统(filesystem)为用户空间提供支持,docker image就相当于一个root文件系统,docker没有自己的硬件虚拟化。严格来讲,镜像不是一个具体的文件(like iso文件),而是由多层文件系统联合。
镜像在构建(build)的时候,会一层一层的进行构建,(通俗来讲,每一个命令即是一层),前一层是后一层的基础,每一层的改变会永远跟随着镜像,就像git一样。因此,在构建镜像的时候要做到每一层只包含该层所需要的东西,而不要加入一些额外的东西,任何额外的东西需要在构建结束时进行清理。
容器 container镜像和容器的关系就好像时类和实例一样,在构建完成一个镜像时,就好像写完了一个类,而后还需要进行实例化出一个容器来。每一个容器拥有自己独立的文件系统,互相隔离,就好像是一个独立的操作系统,但是容器的实质是一个进程。每一个容器运行时以其镜像作为基础层,并在其上创建自己的存储层。
docker不是虚拟机,容器就是一个进程,所以容器内的所有应用全部应 ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2021/08/31/CRT-learn-01/" title="CRT learn 01"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="CRT learn 01"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/31/CRT-learn-01/" title="CRT learn 01">CRT learn 01</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-31T15:43:08.000Z" title="发表于 2021-08-31 23:43:08">2021-08-31</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/C/">C</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/C/CRT/">CRT</a></span></div><div class="content">CRT 01
开了一个新坑,学习CRT.在学习json和自制数据库系统的时候,我发现我对C语言的掌握太肤浅了,但是又苦于找不到合适的路径去学习,不过我发现大多数知识都可以在微软的官方文档上找到,所以就在微软官方上学习一下CRT.
参考:
微软官方文档
我将按照文档上写的一样按照类别进行学习。
参数访问未完成
缓冲区操作_memccpy</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/08/24/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E5%8D%81-%E6%8E%92%E5%BA%8F/" title="数据结构 十 排序"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="数据结构 十 排序"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/24/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E5%8D%81-%E6%8E%92%E5%BA%8F/" title="数据结构 十 排序">数据结构 十 排序</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-24T05:42:46.000Z" title="发表于 2021-08-24 13:42:46">2021-08-24</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">数据结构</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E6%8E%92%E5%BA%8F/">排序</a></span></div><div class="content">数据结构 十 排序sort.h对于基数排序的实现,这位大神太厉害了。代码
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758#ifndef SORT_H#define SORT_H#include <stdio.h>#include <stdbool.h>#include <stdlib.h>#include <stdint.h>#include <string.h>/*1. 内部排序 1. 插入排序 1. 直接插入排序 2. 折半插入排序 3. 希尔排序 2. 交换排序 1. 冒泡排序 2. 快速排序 3. 选择排序 1. 简单选择排序 2. 堆排序 4. 归并排序 5. 基数排序 2. 外部排序 1. */void printf ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2021/08/23/json-learn/" title="json learn"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="json learn"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/23/json-learn/" title="json learn">json learn</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-23T11:11:09.000Z" title="发表于 2021-08-23 19:11:09">2021-08-23</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/project/">project</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/project/json/">json</a></span></div><div class="content">json learn之前收藏过miloyip的json教程,现在想学习一下。
为什么现在要学习这个呢?
首先这几天我对未来的方向越发的清晰了,未来我想从事有关计算机图形学底层相关职业,所以我想重新学习计算机图形学,将之前的游戏引擎重新实现一遍。
想要重写之前的游戏引擎就必须将模型加载自己实现一次,虽然github上有一个tinyobj_loader的项目,但是我现在看不懂,还需要学习更加多的底层知识才可以。
要想增强自己的底层开发能力,必须跟着几个项目进行学习。目前可以学习的资源有:tinyobj_loader,database, 郑刚的操作系统,c4编译器等。
目前我正在准备考研,所以并没有太多时间,只能先学习一些小的项目,不然的话做项目上瘾就没有时间准备考研了。
思来想去,目前来看最合适的项目就是这个json教程了。学完这个教程可以实现一个递归下降的解析器,这又为学习C4做了准备,同时也为CDB做了准备。
于是决定学习json
从零开始的JSON库教程
GitHub
json简介json又六种数据类型,如下:
null 表示为 null
布尔值 表示为 true fals ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/08/23/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E4%B9%9D-%E5%A0%86/" title="数据结构 九 堆"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="数据结构 九 堆"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/23/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E4%B9%9D-%E5%A0%86/" title="数据结构 九 堆">数据结构 九 堆</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-23T05:00:47.000Z" title="发表于 2021-08-23 13:00:47">2021-08-23</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">数据结构</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E5%A0%86/">堆</a></span></div><div class="content">数据结构 九 堆堆的定义heap,可以看作一棵树,只不过在性质方面和树不一样。
堆的性质
堆是一颗完全树。
堆的父结点值总是大于等于(最大堆)或者总是小于等于(最小堆)其孩子结点的值。
二叉堆以最大堆为例
二叉堆满足堆的定义,二叉堆是一个完全二叉树。
当将一个数组看成一个堆的时候,若从零开始,则 2n+1 2n+2 为 n 的孩子。
二叉堆的算法调整堆的调整算法即将堆中一个子树进行调整,令其满足堆的定义。这种调整的方法如下。
若根的值小于孩子的值,则令其与较大的孩子进行交换
令交换后的结点作为新根重复1直到没有孩子或者比孩子的值要大。
新建一个堆,将一个无序的数组调整为一个堆,算法如下:
从最后一个非叶子结点向前遍历直到根节点
对每一个结点进行上述的调整算法。
若对一个已经成序的堆进行调整只需要调整一个改变的结点即可,因为此时只有要处理的结点无序,其余结点都有序。
插入
将插入到数据插入的二叉堆的最后面
将该结点的值和其父结点进行比较,若大于其父结点的值则与父结点交换,递归直到无法上浮。
堆的一个重要应用就是堆排序,即将一个数组看成一个堆,进行排序。
删除
...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2021/08/18/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E5%85%AB-%E5%9B%BE/" title="数据结构 八 图"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="数据结构 八 图"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/18/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E5%85%AB-%E5%9B%BE/" title="数据结构 八 图">数据结构 八 图</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-18T13:55:21.000Z" title="发表于 2021-08-18 21:55:21">2021-08-18</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">数据结构</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E5%9B%BE/">图</a></span></div><div class="content">数据结构 八 图无向图无向图的邻接矩阵实现接口声明123456789101112131415161718192021222324252627282930313233343536373839404142434445//无向图 邻接矩阵#ifndef _GRAPH_H_#define _GRAPH_H_#include <iostream>#include <time.h>#include <stdlib.h>#include <memory.h>#include <stack>#include <deque>#define VERTEX_MAX 100typedef struct _VERTEX{ int key;} * Vertex;typedef struct _GRAPH{ //顶点集合 //顶点数量 //边的数量 //边的集合 使用邻接矩阵或者邻接表进行表示 Vertex vertex[VERTEX_MAX]; int vertex_nu ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/08/08/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E4%B8%83-%E7%BA%A2%E9%BB%91%E6%A0%91/" title="数据结构 七 红黑树"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="数据结构 七 红黑树"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/08/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84-%E4%B8%83-%E7%BA%A2%E9%BB%91%E6%A0%91/" title="数据结构 七 红黑树">数据结构 七 红黑树</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-08T13:44:30.000Z" title="发表于 2021-08-08 21:44:30">2021-08-08</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">数据结构</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/%E7%BA%A2%E9%BB%91%E6%A0%91/">红黑树</a></span></div><div class="content">数据结构 七 红黑树听说红黑树很难,不知道究竟有多难,现在来试一下。
参考资料
定义红黑树是一个自平衡的二叉查找树,每一个结点增加一个标识结点颜色的位(红色或者黑色),通过对任何一条从根节点到叶子的路径上结点着色方式的限制,红黑树保证不存在一条路径会比其他路径长两倍。红黑树不保证绝对的平衡。
nil:指的是红黑树的叶子,但是红黑树的叶子别的树不同,这里的叶子指的是空指针域,可以看作每一个child指针若为null则指向空指针域nil
性质
每一个结点是红的或者黑的。
根节点是黑色的。
空指针域为黑色的。即NULL指针看作黑色。
红色结点的孩子都是黑色的。
对于每一个结点,到以其为根的叶子结点所经过的黑色结点的数目相同。(这里的叶子结点指的是空指针域,以哨兵装入其内)
算法左旋将当前结点旋转为其右孩子的左孩子,并将其右孩子的左孩子设置为当前节点的右孩子。
右旋将当前结点旋转为其左孩子的右孩子,并将其左孩子的右孩子设置为当前节点的左孩子。
插入首先假设插入的结点为红色。因为红色结点不会影响红黑树这一条性质 对于每一个结点,到其叶子结点的所有路径上黑色结点的数目相同。
插入的结点为根节点或 ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2021/08/04/leedcode-%E5%88%9D%E7%BA%A7%E7%AE%97%E6%B3%95-%E6%A0%91/" title="leedcode 初级算法 树"> <img class="post_bg" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="leedcode 初级算法 树"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/08/04/leedcode-%E5%88%9D%E7%BA%A7%E7%AE%97%E6%B3%95-%E6%A0%91/" title="leedcode 初级算法 树">leedcode 初级算法 树</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time datetime="2021-08-04T12:44:25.000Z" title="发表于 2021-08-04 20:44:25">2021-08-04</time></span><span class="article-meta"><span class="article-meta__separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%AE%97%E6%B3%95/">算法</a><i class="fas fa-angle-right"></i><a class="article-meta__categories" href="/categories/%E7%AE%97%E6%B3%95/leedcode/">leedcode</a></span></div><div class="content">leedcode 初级算法 树链接
二叉树的最大深度题目说明求二叉树的最大深度
题目解析使用递归求解即可
1234567int maxDepth(struct TreeNode* root){ if(root==NULL) return 0; int left=maxDepth(root->left); int right=maxDepth(root->right); return (left>=right?left+1:right+1);}
验证二叉搜索树题目描述给定一个二叉树,判断其是否是一个有效的二叉搜索树。
题目解析 方法一递归验证即可。
或者中序遍历也可。
1234567891011121314bool is_right(struct TreeNode* root,long low,long up){ if(root==NULL) return true; if(root->val<=low||root->val>=up) r ...</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/#content-inner">2</a><span class="space">…</span><a class="page-number" href="/page/5/#content-inner">5</a><a class="extend next" rel="next" href="/page/2/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" src="https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">崔文耀</div><div class="author-info__description">Hello, here is wenyao's space, how do you come in???</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">56</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">62</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">41</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/cuiwenyao" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="/yao1970099540@163.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a></div></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>公告</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2021/09/10/linux-%E7%AE%A1%E9%81%93-%E9%87%8D%E5%AE%9A%E5%90%91-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/" title="linux 管道 重定向 环境变量"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="linux 管道 重定向 环境变量"/></a><div class="content"><a class="title" href="/2021/09/10/linux-%E7%AE%A1%E9%81%93-%E9%87%8D%E5%AE%9A%E5%90%91-%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/" title="linux 管道 重定向 环境变量">linux 管道 重定向 环境变量</a><time datetime="2021-09-10T00:38:47.000Z" title="发表于 2021-09-10 08:38:47">2021-09-10</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/04/docker-learn-4-%E7%BD%91%E7%BB%9C/" title="docker learn 4 网络"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 4 网络"/></a><div class="content"><a class="title" href="/2021/09/04/docker-learn-4-%E7%BD%91%E7%BB%9C/" title="docker learn 4 网络">docker learn 4 网络</a><time datetime="2021-09-04T06:57:39.000Z" title="发表于 2021-09-04 14:57:39">2021-09-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/04/docker-learn-3-%E6%95%B0%E6%8D%AE%E7%AE%A1%E7%90%86/" title="docker learn 3 数据管理"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 3 数据管理"/></a><div class="content"><a class="title" href="/2021/09/04/docker-learn-3-%E6%95%B0%E6%8D%AE%E7%AE%A1%E7%90%86/" title="docker learn 3 数据管理">docker learn 3 数据管理</a><time datetime="2021-09-04T06:18:46.000Z" title="发表于 2021-09-04 14:18:46">2021-09-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/04/docker-learn-2-%E5%AE%B9%E5%99%A8/" title="docker learn 2 容器"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 2 容器"/></a><div class="content"><a class="title" href="/2021/09/04/docker-learn-2-%E5%AE%B9%E5%99%A8/" title="docker learn 2 容器">docker learn 2 容器</a><time datetime="2021-09-04T03:41:30.000Z" title="发表于 2021-09-04 11:41:30">2021-09-04</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2021/09/03/docker-learn-1-%E9%95%9C%E5%83%8F/" title="docker learn 1 镜像"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="docker learn 1 镜像"/></a><div class="content"><a class="title" href="/2021/09/03/docker-learn-1-%E9%95%9C%E5%83%8F/" title="docker learn 1 镜像">docker learn 1 镜像</a><time datetime="2021-09-03T12:19:26.000Z" title="发表于 2021-09-03 20:19:26">2021-09-03</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
<a class="card-more-btn" href="/categories/" title="查看更多">
<i class="fas fa-angle-right"></i></a>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/categories/C/"><span class="card-category-list-name">C</span><span class="card-category-list-count">2</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/C/CRT/"><span class="card-category-list-name">CRT</span><span class="card-category-list-count">1</span></a></li></ul></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/c/"><span class="card-category-list-name">c++</span><span class="card-category-list-count">2</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/c/stl/"><span class="card-category-list-name">stl</span><span class="card-category-list-count">1</span></a></li></ul></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/gcc/"><span class="card-category-list-name">gcc</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/linux/"><span class="card-category-list-name">linux</span><span class="card-category-list-count">13</span></a><ul class="card-category-list child"><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/linux/docker/"><span class="card-category-list-name">docker</span><span class="card-category-list-count">4</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/linux/linux%E5%9F%BA%E7%A1%80%E5%91%BD%E4%BB%A4%E5%AD%A6%E4%B9%A0/"><span class="card-category-list-name">linux基础命令学习</span><span class="card-category-list-count">1</span></a></li></ul></li>
</ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/ADT/" style="font-size: 1.1em; color: #999">ADT</a> <a href="/tags/B-tree/" style="font-size: 1.1em; color: #999">B-tree</a> <a href="/tags/C/" style="font-size: 1.23em; color: #999ea6">C</a> <a href="/tags/CDB/" style="font-size: 1.1em; color: #999">CDB</a> <a href="/tags/CRT/" style="font-size: 1.1em; color: #999">CRT</a> <a href="/tags/XYY/" style="font-size: 1.1em; color: #999">XYY</a> <a href="/tags/c/" style="font-size: 1.23em; color: #999ea6">c++</a> <a href="/tags/centos/" style="font-size: 1.1em; color: #999">centos</a> <a href="/tags/cmake/" style="font-size: 1.1em; color: #999">cmake</a> <a href="/tags/code-server/" style="font-size: 1.1em; color: #999">code-server</a> <a href="/tags/database/" style="font-size: 1.1em; color: #999">database</a> <a href="/tags/discuz/" style="font-size: 1.1em; color: #999">discuz</a> <a href="/tags/docker/" style="font-size: 1.37em; color: #99a4b2">docker</a> <a href="/tags/gcc/" style="font-size: 1.1em; color: #999">gcc</a> <a href="/tags/git/" style="font-size: 1.1em; color: #999">git</a> <a href="/tags/hello-world/" style="font-size: 1.1em; color: #999">hello_world</a> <a href="/tags/hexo/" style="font-size: 1.1em; color: #999">hexo</a> <a href="/tags/json/" style="font-size: 1.1em; color: #999">json</a> <a href="/tags/leedcode/" style="font-size: 1.37em; color: #99a4b2">leedcode</a> <a href="/tags/linux/" style="font-size: 1.5em; color: #99a9bf">linux</a> <a href="/tags/mail/" style="font-size: 1.1em; color: #999">mail</a> <a href="/tags/markdown/" style="font-size: 1.1em; color: #999">markdown</a> <a href="/tags/myself/" style="font-size: 1.1em; color: #999">myself</a> <a href="/tags/nasm/" style="font-size: 1.1em; color: #999">nasm</a> <a href="/tags/ngiinx/" style="font-size: 1.1em; color: #999">ngiinx</a> <a href="/tags/nonetag/" style="font-size: 1.23em; color: #999ea6">nonetag</a> <a href="/tags/opencv/" style="font-size: 1.1em; color: #999">opencv</a> <a href="/tags/os/" style="font-size: 1.37em; color: #99a4b2">os</a> <a href="/tags/plan/" style="font-size: 1.1em; color: #999">plan</a> <a href="/tags/project/" style="font-size: 1.1em; color: #999">project</a> <a href="/tags/proxy/" style="font-size: 1.1em; color: #999">proxy</a> <a href="/tags/python/" style="font-size: 1.1em; color: #999">python</a> <a href="/tags/shell/" style="font-size: 1.1em; color: #999">shell</a> <a href="/tags/stl/" style="font-size: 1.1em; color: #999">stl</a> <a href="/tags/trojan/" style="font-size: 1.1em; color: #999">trojan</a> <a href="/tags/ubuntu/" style="font-size: 1.23em; color: #999ea6">ubuntu</a> <a href="/tags/vps/" style="font-size: 1.1em; color: #999">vps</a> <a href="/tags/%E4%BD%BF%E7%94%A8/" style="font-size: 1.23em; color: #999ea6">使用</a> <a href="/tags/%E5%88%9D%E7%BA%A7%E7%AE%97%E6%B3%95/" style="font-size: 1.23em; color: #999ea6">初级算法</a> <a href="/tags/%E5%9B%BE/" style="font-size: 1.1em; color: #999">图</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/09/"><span class="card-archive-list-date">九月 2021</span><span class="card-archive-list-count">5</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/08/"><span class="card-archive-list-date">八月 2021</span><span class="card-archive-list-count">7</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/07/"><span class="card-archive-list-date">七月 2021</span><span class="card-archive-list-count">13</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/06/"><span class="card-archive-list-date">六月 2021</span><span class="card-archive-list-count">11</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/05/"><span class="card-archive-list-date">五月 2021</span><span class="card-archive-list-count">7</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/04/"><span class="card-archive-list-date">四月 2021</span><span class="card-archive-list-count">9</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/03/"><span class="card-archive-list-date">三月 2021</span><span class="card-archive-list-count">4</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">56</div></div><div class="webinfo-item"><div class="item-name">本站总字数 :</div><div class="item-count">139.7k</div></div><div class="webinfo-item"><div class="item-name">本站访客数 :</div><div class="item-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="item-name">本站总访问量 :</div><div class="item-count" id="busuanzi_value_site_pv"></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2021-09-10T01:33:37.182Z"></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">©2020 - 2021 By 崔文耀</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>