-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
383 lines (334 loc) · 39.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
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
<!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>czp001的小站 - 却道天凉好个秋!</title><meta name="author" content="czp001"><meta name="copyright" content="czp001"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="中二少年">
<meta property="og:type" content="website">
<meta property="og:title" content="czp001的小站">
<meta property="og:url" content="https://czp001.github.io/index.html">
<meta property="og:site_name" content="czp001的小站">
<meta property="og:description" content="中二少年">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://czp001.github.io/pic/avatar.gif">
<meta property="article:author" content="czp001">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://czp001.github.io/pic/avatar.gif"><link rel="shortcut icon" href="/pic/doge.jpg"><link rel="canonical" href="https://czp001.github.io/"><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":250},
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.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js',
css: 'https://cdn.bootcdn.net/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css'
}
},
isPhotoFigcaption: false,
islazyload: true,
isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: 'czp001的小站',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2024-04-11 22:43:12'
}</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')
}
}
const fontSizeVal = saveToLocal.get('global-font-size')
if (fontSizeVal !== undefined) {
document.documentElement.style.setProperty('--global-font-size', fontSizeVal + 'px')
}
const detectApple = () => {
if (GLOBAL_CONFIG_SITE.isHome && /iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
document.addEventListener('pjax:complete', detectApple)})(window)</script><link rel="stylesheet" href="/css/font.css"><link rel="stylesheet" href="//at.alicdn.com/t/c/font_3947573_xh0f1lq3p6n.css><meta name="generator" content="Hexo 5.4.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src= "/pic/loading.gif" data-lazy-src="/pic/avatar.gif" onerror="onerror=null;src='/pic/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">7</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">5</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">3</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> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 媒体</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-film"></i><span> 电影</span></a></li><li><a class="site-page child" href="/photo/"><i class="fa-fw fas fa-camera"></i><span> 相册</span></a></li><li><a class="site-page child" href="/game/"><i class="fa-fw fas fa-gamepad"></i><span> 游戏</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-color:transparent;"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">czp001的小站</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> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 媒体</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> 音乐</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-film"></i><span> 电影</span></a></li><li><a class="site-page child" href="/photo/"><i class="fa-fw fas fa-camera"></i><span> 相册</span></a></li><li><a class="site-page child" href="/game/"><i class="fa-fw fas fa-gamepad"></i><span> 游戏</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">czp001的小站</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="https://github.com/czp001" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:czp142857@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=992925457" target="_blank" title="QQ"><i class="fab fa-qq"></i></a></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></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="/2022/11/30/%E8%8B%B9%E6%9E%9C%E6%96%B9%E7%A8%8B/" title="苹果方程"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="/pic/math_cover5.webp" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="苹果方程"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/11/30/%E8%8B%B9%E6%9E%9C%E6%96%B9%E7%A8%8B/" 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="2022-11-30T15:13:56.000Z" title="发表于 2022-11-30 23:13:56">2022-11-30</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/Mathematica/">Mathematica</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%BB%98%E5%9B%BE/">绘图</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/Mathematica/">Mathematica</a></span></div><div class="content">
画一个大苹果🍎
参数方程如下
{x=cos(u)(cos(v)+1)+0.085cos(5u)y=(1+cos(u))sin(u)z=−0.7log(1−vπ)+6sin(v)+2cos(v) \begin{cases}
x=\cos (u) (\cos (v)+1)+0.085 \cos (5 u) \\
y = (1 + \cos (u)) \sin(u)\\
z=-0.7 \log \left(1-\frac{v}{\pi }\right)+6 \sin (v)+2 \cos (v)
\end{cases}
⎩⎨⎧x=cos(u)(cos(v)+1)+0.085cos(5u)y=(1+cos(u))sin(u)z=−0.7log(1−πv)+6sin(v)+2cos(v)
u,v∈[−π,π]u,v\in [-\pi ,\pi ]
u,v∈[−π,π]
Mathematica代码
12345ParametricPlot3D[{(1 + Cos[v]) Cos[u] + 0.08 ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2022/09/28/%E5%A4%A7%E9%BB%84%E9%B8%AD%E6%96%B9%E7%A8%8B/" title="大黄鸭方程"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="/pic/math_cover9.jpg" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="大黄鸭方程"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/09/28/%E5%A4%A7%E9%BB%84%E9%B8%AD%E6%96%B9%E7%A8%8B/" 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="2022-09-28T15:01:46.000Z" title="发表于 2022-09-28 23:01:46">2022-09-28</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/Mathematica/">Mathematica</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%BB%98%E5%9B%BE/">绘图</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/Mathematica/">Mathematica</a></span></div><div class="content">
今天来整一个大黄鸭!!!🦆
模特在此
需要动鼠标转一下坐标轴,否则鸭头会朝下,不好看
123SphericalPlot3D[Log[x] + Sin[y], {x, 0, 2 \[Pi]}, {y, 0, 2 \[Pi]}, Boxed -> False, PlotStyle -> Yellow, Mesh -> None, PlotPoints -> 30, Axes -> True, SphericalRegion -> True, AxesLabel -> {"x", "y", "z"}]
调整之后是这样子。这鸭子爱说话,嘴变长了😄
俯视,还挺圆润🦆
</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2022/09/18/Python%E7%88%AC%E8%99%AB%E4%B8%8B%E8%BD%BDB%E7%AB%99UP%E4%B8%BB%E8%A7%86%E9%A2%91%E5%B0%81%E9%9D%A2/" title="Python爬虫下载B站UP主视频封面"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="/pic/math_cover9.jpg" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="Python爬虫下载B站UP主视频封面"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/09/18/Python%E7%88%AC%E8%99%AB%E4%B8%8B%E8%BD%BDB%E7%AB%99UP%E4%B8%BB%E8%A7%86%E9%A2%91%E5%B0%81%E9%9D%A2/" title="Python爬虫下载B站UP主视频封面">Python爬虫下载B站UP主视频封面</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="2022-09-18T13:14:13.000Z" title="发表于 2022-09-18 21:14:13">2022-09-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/Python/">Python</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/Python/">Python</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/%E7%88%AC%E8%99%AB/">爬虫</a></span></div><div class="content">
有时候感觉B站视频的封面很好看,想要保存,但在网页中右键→检查,然后定位元素一张一张手动保存很麻烦。这时可以写一个Python爬虫程序进行批量下载
挑一个想要下载的UP主
我来随便选一个,嘿嘿就她了漫罗拉,来到她的首页,首页的网址最后的数字314480501是UP主的UID,这是个重要参数,后面会用到。点击投稿栏目会看到所有的视频。
定位我们需要的请求地址
我们需要的地址就是浏览器地址栏上这个简单的地址吗?https://space.bilibili.com/314480501/video,右键检查找到这个请求,看看返回了什么,在返回的html里搜索几个视频标题,搜索不到标题。
这说明这些视频信息可能是是动态加载的,我们把筛选切换到Fetch/XHR重新查看这些过滤后的请求。经过一番检查发现有一个search?开头的请求是我们要找的,请求地址是https://api.bilibili.com/x/space/arc/search?mid=314480501&ps=30&tid=0&pn=1&keyword=&order=pubdate& ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2022/08/23/%E7%88%B1%E5%BF%83%E6%96%B9%E7%A8%8B/" title="爱心方程"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="/pic/math_cover1.webp" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="爱心方程"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/08/23/%E7%88%B1%E5%BF%83%E6%96%B9%E7%A8%8B/" 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="2022-08-23T14:10:20.000Z" title="发表于 2022-08-23 22:10:20">2022-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/Mathematica/">Mathematica</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%BB%98%E5%9B%BE/">绘图</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/Mathematica/">Mathematica</a></span></div><div class="content">
说起❤爱心方程,大家最熟悉的应该是笛卡尔的心形线。方程千变万化,爱心方程也有很多种,我搜集了一些,有的也做了一些变化,一起来看看吧!
笛卡尔心形线
这是大家最熟悉的一种了,图中 a=3a=3a=3
ρ=a(1−cos(θ)),θ∈[0,2π]\rho =a (1-\cos (\theta )),\theta \in [0,2 \pi ]
ρ=a(1−cos(θ)),θ∈[0,2π]
1PolarPlot[3 (1 - Cos[\[Theta]]), {\[Theta], 0, 2 \[Pi]}]
带绝对值的二次方程
xxx不带绝对值的话,是一个倾斜的椭圆,加了之后图形关于yyy轴对称了,下半部分还削掉了两块
x2−y∣x∣+y2−1=0x^2-y \left| x\right|+y^2-1=0
x2−y∣x∣+y2−1=0
1ContourPlot[x^2 - Abs[x]*y + y^2 - 1 == 0, {x, -2, 2}, {y, 2, -2}]
加点变化
1234ContourPlot[{x^ ...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2022/08/18/%E7%9F%B3%E5%A2%A8%E7%83%AF%E5%88%86%E5%AD%90%E7%BB%93%E6%9E%84/" title="石墨烯分子结构"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="/pic/math_cover3.webp" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="石墨烯分子结构"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/08/18/%E7%9F%B3%E5%A2%A8%E7%83%AF%E5%88%86%E5%AD%90%E7%BB%93%E6%9E%84/" 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="2022-08-18T15:03:08.000Z" title="发表于 2022-08-18 23:03:08">2022-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/Mathematica/">Mathematica</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%BB%98%E5%9B%BE/">绘图</a><span class="article-meta__link">•</span><a class="article-meta__tags" href="/tags/Mathematica/">Mathematica</a></span></div><div class="content">
慢慢开始更新吧,今天收到一个问题:画一个平面石墨烯的分子结构。
画法还是很自然的,先画一个正六边形,然后把点换成小球,把边换成管子,在Mathematica里可以用Ball和Tube函数,然后用Translate函数把这个图形单元做平移变换。
代码如下,unitHexagon是六边形单元,可以指定边和点的颜色
12345678910unitHexagon[colorhexa_, coloratom_] := {colorhexa, Tube[Table[{Cos[n Pi/3], Sin[n Pi/3], 0}, {n, 7}], 0.1], coloratom, Ball[#, 0.3] & /@ Table[{Cos[n Pi/3], Sin[n Pi/3], 0}, {n, 6}]};pts[x_, y_] := Block[{j, k}, Flatten[Table[{{3 (j + 1/2), Sqrt[ ...</div></div></div><div class="recent-post-item"><div class="post_cover right_radius"><a href="/2022/04/16/%E6%96%B0%E6%96%87%E7%AB%A0%E6%B5%8B%E8%AF%95/" title="新文章测试"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="/pic/math_cover9.jpg" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="新文章测试"></a></div><div class="recent-post-info"><a class="article-title" href="/2022/04/16/%E6%96%B0%E6%96%87%E7%AB%A0%E6%B5%8B%E8%AF%95/" 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="2022-04-15T18:34:12.000Z" title="发表于 2022-04-16 02:34:12">2022-04-16</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%B5%8B%E8%AF%95/">测试</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E6%B5%8B%E8%AF%95/">测试</a></span></div><div class="content">测试文章
测试abcd
分割线
数学表达式
求tan(x)\tan (x)tan(x),可以用
tan(x)=sin(x)cos(x)\tan (x)=\frac{\sin (x)}{\cos (x)}
tan(x)=cos(x)sin(x)
或者这个
tan(x)=∑x=1∞(−1)n−122n(22n−1)B2nx2n−1(2n)!\tan (x)=\sum _{x=1}^{\infty } \frac{(-1)^{n-1} 2^{2 n} \left(2^{2 n}-1\right) B_{2 n} x^{2 n-1}}{(2 n)!}
tan(x)=x=1∑∞(2n)!(−1)n−122n(22n−1)B2nx2n−1
其中B2nB_{2 n}B2n为伯努利数。B2nB_{2 n}B2n和1cos(x)\frac{1}{\cos (x)}cos(x)1都用多项式求逆来做。
24=0.52c+2d+24=a\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a
...</div></div></div><div class="recent-post-item"><div class="post_cover left_radius"><a href="/2021/11/30/hello-world/" title="Hello World"> <img class="post_bg" src= "/pic/loading.gif" data-lazy-src="https://d33wubrfki0l68.cloudfront.net/6657ba50e702d84afb32fe846bed54fba1a77add/827ae/logo.svg" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="Hello World"></a></div><div class="recent-post-info"><a class="article-title" href="/2021/11/30/hello-world/" title="Hello World">Hello World</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-11-29T17:03:11.099Z" title="发表于 2021-11-30 01:03:11">2021-11-30</time></span></div><div class="content">Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1$ hexo new "My New Post"
More info: Writing
Run server
1$ hexo server
More info: Server
Generate static files
1$ hexo generate
More info: Generating
Deploy to remote sites
1$ hexo deploy
More info: Deployment
</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src= "/pic/loading.gif" data-lazy-src="/pic/avatar.gif" onerror="this.onerror=null;this.src='/pic/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">czp001</div><div class="author-info__description">中二少年</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">7</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">标签</div><div class="length-num">5</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">分类</div><div class="length-num">3</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/czp001"><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/czp001" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:czp142857@gmail.com" target="_blank" title="Email"><i class="fas fa-envelope"></i></a><a class="social-icon" href="tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=992925457" target="_blank" title="QQ"><i class="fab fa-qq"></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="/2022/11/30/%E8%8B%B9%E6%9E%9C%E6%96%B9%E7%A8%8B/" title="苹果方程"><img src= "/pic/loading.gif" data-lazy-src="/pic/math_cover5.webp" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="苹果方程"/></a><div class="content"><a class="title" href="/2022/11/30/%E8%8B%B9%E6%9E%9C%E6%96%B9%E7%A8%8B/" title="苹果方程">苹果方程</a><time datetime="2022-11-30T15:13:56.000Z" title="发表于 2022-11-30 23:13:56">2022-11-30</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/09/28/%E5%A4%A7%E9%BB%84%E9%B8%AD%E6%96%B9%E7%A8%8B/" title="大黄鸭方程"><img src= "/pic/loading.gif" data-lazy-src="/pic/math_cover9.jpg" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="大黄鸭方程"/></a><div class="content"><a class="title" href="/2022/09/28/%E5%A4%A7%E9%BB%84%E9%B8%AD%E6%96%B9%E7%A8%8B/" title="大黄鸭方程">大黄鸭方程</a><time datetime="2022-09-28T15:01:46.000Z" title="发表于 2022-09-28 23:01:46">2022-09-28</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/09/18/Python%E7%88%AC%E8%99%AB%E4%B8%8B%E8%BD%BDB%E7%AB%99UP%E4%B8%BB%E8%A7%86%E9%A2%91%E5%B0%81%E9%9D%A2/" title="Python爬虫下载B站UP主视频封面"><img src= "/pic/loading.gif" data-lazy-src="/pic/math_cover9.jpg" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="Python爬虫下载B站UP主视频封面"/></a><div class="content"><a class="title" href="/2022/09/18/Python%E7%88%AC%E8%99%AB%E4%B8%8B%E8%BD%BDB%E7%AB%99UP%E4%B8%BB%E8%A7%86%E9%A2%91%E5%B0%81%E9%9D%A2/" title="Python爬虫下载B站UP主视频封面">Python爬虫下载B站UP主视频封面</a><time datetime="2022-09-18T13:14:13.000Z" title="发表于 2022-09-18 21:14:13">2022-09-18</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/08/23/%E7%88%B1%E5%BF%83%E6%96%B9%E7%A8%8B/" title="爱心方程"><img src= "/pic/loading.gif" data-lazy-src="/pic/math_cover1.webp" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="爱心方程"/></a><div class="content"><a class="title" href="/2022/08/23/%E7%88%B1%E5%BF%83%E6%96%B9%E7%A8%8B/" title="爱心方程">爱心方程</a><time datetime="2022-08-23T14:10:20.000Z" title="发表于 2022-08-23 22:10:20">2022-08-23</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2022/08/18/%E7%9F%B3%E5%A2%A8%E7%83%AF%E5%88%86%E5%AD%90%E7%BB%93%E6%9E%84/" title="石墨烯分子结构"><img src= "/pic/loading.gif" data-lazy-src="/pic/math_cover3.webp" onerror="this.onerror=null;this.src='/pic/404.webp'" alt="石墨烯分子结构"/></a><div class="content"><a class="title" href="/2022/08/18/%E7%9F%B3%E5%A2%A8%E7%83%AF%E5%88%86%E5%AD%90%E7%BB%93%E6%9E%84/" title="石墨烯分子结构">石墨烯分子结构</a><time datetime="2022-08-18T15:03:08.000Z" title="发表于 2022-08-18 23:03:08">2022-08-18</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Mathematica/"><span class="card-category-list-name">Mathematica</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/Python/"><span class="card-category-list-name">Python</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/%E6%B5%8B%E8%AF%95/"><span class="card-category-list-name">测试</span><span class="card-category-list-count">1</span></a></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/%E7%BB%98%E5%9B%BE/" style="font-size: 1.45em; color: rgb(93, 166, 176)">绘图</a><a href="/tags/Mathematica/" style="font-size: 1.45em; color: rgb(9, 140, 113)">Mathematica</a><a href="/tags/%E6%B5%8B%E8%AF%95/" style="font-size: 1.15em; color: rgb(176, 115, 116)">测试</a><a href="/tags/Python/" style="font-size: 1.15em; color: rgb(80, 40, 106)">Python</a><a href="/tags/%E7%88%AC%E8%99%AB/" style="font-size: 1.15em; color: rgb(49, 187, 96)">爬虫</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/2022/11/"><span class="card-archive-list-date">十一月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/09/"><span class="card-archive-list-date">九月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/08/"><span class="card-archive-list-date">八月 2022</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2022/04/"><span class="card-archive-list-date">四月 2022</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2021/11/"><span class="card-archive-list-date">十一月 2021</span><span class="card-archive-list-count">1</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">7</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2020-11-30T16:00:00.000Z"></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="2024-04-11T14:43:11.220Z"></div></div></div></div><div class="card-widget user-map" id="user-map"><div class="item-headline"><i class="fas fa-heartbeat"></i><span>访客地图</span></div><div class="item-content"><script type="text/javascript" id="clstr_globe" src="//clustrmaps.com/globe.js?d=K5ZisaAVHNUbzT_ta0BWrtsjFnjoCkAILUHypN3g-8c"></script></div></div></div></div></main><footer id="footer" style="background-color: transparent;"><div id="footer-wrap"><div class="copyright">©2020 - 2024 <i style="color:#FF6A6A;animation: announ_animation 0.8s linear infinite;"class="fas fa-heart"></i> By czp001</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 class="footer_custom_text">嗨!欢迎来到我的小宇宙!</div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="font-plus" type="button" title="放大字体"><i class="fas fa-plus"></i></button><button id="font-minus" type="button" title="缩小字体"><i class="fas fa-minus"></i></button><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><script src="https://cdn.jsdelivr.net/npm/instant.page/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.iife.min.js"></script><script>var preloader = {
endLoading: () => {
document.body.style.overflow = 'auto';
document.getElementById('loading-box').classList.add("loaded")
},
initLoading: () => {
document.body.style.overflow = '';
document.getElementById('loading-box').classList.remove("loaded")
}
}
window.addEventListener('load',preloader.endLoading())</script><div class="js-pjax"><script>function subtitleType () {
getScript('https://sdk.jinrishici.com/v2/browser/jinrishici.js').then(() => {
jinrishici.load(function (result) {
if (true) {
var sub = "".length == 0 ? new Array() : "".split(',')
var content = result.data.content
var both = sub.unshift(content)
var typed = new Typed('#subtitle', {
strings: sub,
startDelay: 300,
typeSpeed: 150,
loop: true,
backSpeed: 50,
})
} else {
document.getElementById('subtitle').innerHTML = result.data.content
}
})
})
}
if (true) {
if (typeof Typed === 'function') {
subtitleType()
} else {
getScript('https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js').then(subtitleType)
}
} else {
subtitleType()
}
</script><script>if (document.getElementsByClassName('mermaid').length) {
if (window.mermaidJsLoad) mermaid.init()
else {
getScript('https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js').then(() => {
window.mermaidJsLoad = true
mermaid.initialize({
theme: 'default',
})
true && mermaid.init()
})
}
}</script></div><div class="aplayer no-destroy" data-id="628776634" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="true" data-volume="0.5" ></div><script defer="defer" id="fluttering_ribbon" mobile="false" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/canvas-fluttering-ribbon.min.js"></script><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/dist/click-heart.min.js" async="async" mobile="false"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.js"></script><script src="https://cdn.jsdelivr.net/gh/metowolf/MetingJS@1.2/dist/Meting.min.js"></script><script src="https://cdn.jsdelivr.net/npm/pjax/pjax.min.js"></script><script>let pjaxSelectors = [
'title',
'#config-diff',
'#body-wrap',
'#rightside-config-hide',
'#rightside-config-show',
'.js-pjax'
]
if (false) {
pjaxSelectors.unshift('meta[property="og:image"]', 'meta[property="og:title"]', 'meta[property="og:url"]')
}
var pjax = new Pjax({
elements: 'a:not([target="_blank"])',
selectors: pjaxSelectors,
cacheBust: false,
analytics: false,
scrollRestoration: false
})
document.addEventListener('pjax:send', function () {
// removeEventListener scroll
window.removeEventListener('scroll', window.tocScrollFn)
window.removeEventListener('scroll', scrollCollect)
typeof preloader === 'object' && preloader.initLoading()
if (window.aplayers) {
for (let i = 0; i < window.aplayers.length; i++) {
if (!window.aplayers[i].options.fixed) {
window.aplayers[i].destroy()
}
}
}
typeof typed === 'object' && typed.destroy()
//reset readmode
const $bodyClassList = document.body.classList
$bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')
})
document.addEventListener('pjax:complete', function () {
window.refreshFn()
document.querySelectorAll('script[data-pjax]').forEach(item => {
const newScript = document.createElement('script')
const content = item.text || item.textContent || item.innerHTML || ""
Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
newScript.appendChild(document.createTextNode(content))
item.parentNode.replaceChild(newScript, item)
})
GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()
typeof chatBtnFn === 'function' && chatBtnFn()
typeof panguInit === 'function' && panguInit()
// google analytics
typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});
// baidu analytics
typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
// Analytics
if (false) {
MtaH5.pgv()
}
// prismjs
typeof Prism === 'object' && Prism.highlightAll()
typeof preloader === 'object' && preloader.endLoading()
})
document.addEventListener('pjax:error', (e) => {
if (e.request.status === 404) {
pjax.loadUrl('/404.html')
}
})</script><script async data-pjax src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"debug":false,"model":{"jsonPath":"/live2dw/assets/shizuku.model.json"},"display":{"position":"right","width":150,"height":300,"hOffset":0,"vOffset":-50},"dialog":{"enable":false},"mobile":{"show":true,"scale":0.8},"react":{"opacity":0.9},"log":false});</script><script async>window.onload=function(){var a=document.createElement('script'),b=document.getElementsByTagName('script')[0];a.type='text/javascript',a.async=!0,a.src='/sw-register.js?v='+Date.now(),b.parentNode.insertBefore(a,b)};</script></body></html>