-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
235 lines (209 loc) · 45.9 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
<!DOCTYPE html><html lang="zh-Hans" 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.0,viewport-fit=cover"><title>守株阁 - 一切都是守株待兔,如切如磋,如琢如磨。I am just joking.</title><meta name="author" content="magicliang"><meta name="copyright" content="magicliang"><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="守株阁">
<meta property="og:url" content="http://magicliang.github.io/index.html">
<meta property="og:site_name" content="守株阁">
<meta property="og:description" content="关于技术以及人生">
<meta property="og:locale">
<meta property="og:image" content="http://magicliang.github.io/img/rei.jpeg">
<meta property="article:author" content="magicliang">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://magicliang.github.io/img/rei.jpeg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://magicliang.github.io/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css?v=4.13.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/snackbar.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: undefined,
translate: {"defaultEncoding":1,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
noticeOutdate: undefined,
highlight: {"plugin":"highlight.js","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: 'Copy Successful',
error: 'Copy Error',
noSupport: 'Browser Not Supported'
},
relativeDate: {
homepage: true,
post: true
},
runtime: 'days',
dateSuffix: {
just: 'Just now',
min: 'minutes ago',
hour: 'hours ago',
day: 'days ago',
month: 'months ago'
},
copyright: {"limitCount":50,"languages":{"author":"Author: magicliang","link":"Link: ","source":"Source: 守株阁","info":"Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source."}},
lightbox: 'fancybox',
Snackbar: {"chs_to_cht":"You have switched to Traditional Chinese","cht_to_chs":"You have switched to Simplified Chinese","day_to_night":"You have switched to Dark Mode","night_to_day":"You have switched to Light Mode","bgLight":"#49b1f5","bgDark":"#2d3035","position":"bottom-left"},
infinitegrid: {
js: 'https://cdn.jsdelivr.net/npm/@egjs/[email protected]/dist/infinitegrid.min.js',
buttonText: 'Load More'
},
isPhotoFigcaption: true,
islazyload: false,
isAnchor: false,
percent: {
toc: true,
rightside: false,
},
autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: '守株阁',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2024-10-17 11:30:27'
}</script><script>(win=>{
win.saveToLocal = {
set: (key, value, ttl) => {
if (ttl === 0) return
const now = Date.now()
const expiry = now + ttl * 86400000
const item = {
value,
expiry
}
localStorage.setItem(key, JSON.stringify(item))
},
get: key => {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = Date.now()
if (now > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = (url, attr = {}) => 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()
}
Object.keys(attr).forEach(key => {
script.setAttribute(key, attr[key])
})
document.head.appendChild(script)
})
win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = url
if (id) link.id = id
link.onerror = reject
link.onload = link.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
link.onload = link.onreadystatechange = null
resolve()
}
document.head.appendChild(link)
})
win.activateDarkMode = () => {
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 = () => {
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 detectApple = () => {
if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
})(window)</script><meta name="generator" content="Hexo 7.3.0"><link rel="alternate" href="/atom.xml" title="守株阁" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/img/rei.jpeg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">Articles</div><div class="length-num">333</div></a><a href="/tags/"><div class="headline">Tags</div><div class="length-num">187</div></a><a href="/categories/"><div class="headline">Categories</div><div class="length-num">0</div></a></div><hr class="custom-hr"/></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/img/eva-wallpaper.jpg')"><nav id="nav"><span id="blog-info"><a href="/" title="守株阁"><span class="site-name">守株阁</span></a></span><div id="menus"><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">守株阁</h1><div id="site_social_icons"><a class="social-icon" href="https://github.com/magicliang" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:[email protected]" target="_blank" title="Email"><i class="fas fa-envelope"></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"><a href="/2024/10/09/%E4%B8%8D%E5%90%8C%E6%97%B6%E5%8C%BA/" title="不同时区"><img class="post-bg" src="/img/wall-paper-156.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="不同时区"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/10/09/%E4%B8%8D%E5%90%8C%E6%97%B6%E5%8C%BA/" title="不同时区">不同时区</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2024-10-09T10:59:51.000Z" title="Created 2024-10-09 18:59:51">2024-10-09</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-10-09T11:00:15.889Z" title="Updated 2024-10-09 19:00:15">2024-10-09</time></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/%E8%8B%B1%E8%AF%AD/">英语</a></span></div><div class="content">纽约时间比加州时间早三个小时,New York is 3 hours ahead of California,但加州时间并没有变慢。but it does not make Californiaslow. 有人22岁就毕业了, Someone graduated at the age of 22,但等了五年才找到好的工作!but waited 5 years before securing a good job!有人25岁就当上CEO,Someone became a CEO at 25,却在50岁去世。and died at 50.也有人50岁才当上CEO,While another became a CEO at 50,然后活到90岁。and lived to 90 years.有人依然单身,Someone is still single,同时也有人已婚。while someone else got married.奥巴马55岁就退休,Obama retires at 55,川普70岁才开始当总统。but Trump starts at 70.世上每个人本来就有自己的发展时区。Ab ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/10/07/%E9%AB%98%E7%BA%A7%E7%AE%97%E6%B3%95%E8%AE%BE%E8%AE%A1%E5%92%8C%E5%88%86%E6%9E%90%E6%8A%80%E6%9C%AF/" title="高级算法设计和分析技术"><img class="post-bg" src="/img/wall-paper-49.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="高级算法设计和分析技术"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/10/07/%E9%AB%98%E7%BA%A7%E7%AE%97%E6%B3%95%E8%AE%BE%E8%AE%A1%E5%92%8C%E5%88%86%E6%9E%90%E6%8A%80%E6%9C%AF/" title="高级算法设计和分析技术">高级算法设计和分析技术</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2024-10-07T11:42:09.000Z" title="Created 2024-10-07 19:42:09">2024-10-07</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-10-08T03:12:14.635Z" title="Updated 2024-10-08 11:12:14">2024-10-08</time></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%AE%97%E6%B3%95/">算法</a></span></div><div class="content">算法在计算中的作用算法的定义算法是良定义的计算过程,该过程输入某个值或者集合,产生某组值或集合。
解决问题:对于每个输入实例,算法能够停机。
效率:输入规模比较重要,常系数经常被记法隐藏,在同级算法比较中会有用。
硬件也是程序:后面我们会看到指令执行模型在算法中的体现
数据结构的定义存储和组织数据的方式。
算法基础插入排序循环不变式 loop invariant
初始化 initialization:循环第一次迭代以前,它为真
保持 mantainance:如果循环某次迭代前它为真,那么下次迭代之前它仍为真。
终止 termination:在循环终止时,不变式为我们提供一个有用的性质,该性质有助于证明算法是正确的。
我们使用循环不变式来证明了我们用插入排序解决了排序问题。这个方法和数学归纳法的区别是数学归纳法不一定终止,但循环不变式会终止。
分析算法RAM 模型在这个模型里,一切都是有限的(limited):
- 指令只能在常量时间里执行
- arithmetic 加减乘除
- 赋值 load
- 控制
- 数据的字长有限(更广义地讲,内存有限):我们不能 ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2024/10/05/%E6%97%A0%E7%BA%BF%E7%94%B5%E6%B3%A2/" title="无线电波"><img class="post-bg" src="/img/wall-paper-12.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="无线电波"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/10/05/%E6%97%A0%E7%BA%BF%E7%94%B5%E6%B3%A2/" title="无线电波">无线电波</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2024-10-05T08:29:56.000Z" title="Created 2024-10-05 16:29:56">2024-10-05</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-10-08T03:12:14.635Z" title="Updated 2024-10-08 11:12:14">2024-10-08</time></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%89%A9%E7%90%86/">物理</a></span></div><div class="content">三种模式AM、FM和NOAA是不同类型的无线电广播服务:
AM(Amplitude Modulation,调幅):这是一种无线电波的调制方式,通过改变无线电波的振幅来传输信息。AM广播通常用于长波和中波波段,它的传播距离较远,可以覆盖较大的范围,但音质相对较差,容易受到干扰。
FM(Frequency Modulation,调频):与AM不同,FM通过改变无线电波的频率来传输信息。FM广播通常用于高频(VHF)波段,音质较好,抗干扰能力强,但传播距离相对较短,适合城市和局部地区的广播。
NOAA(National Oceanic and Atmospheric Administration,美国国家海洋和大气管理局):NOAA天气广播是一种特殊的广播服务,它使用特定的频率(通常是AM波段)来播送天气、灾害预警和其他重要信息。NOAA广播对于应急准备和公共安全非常重要,特别是在自然灾害发生时,如飓风、洪水或地震。
世界上有些国家强制汽车拥有AM收音的原因主要是因为AM广播的覆盖范围广,在自然灾害或其他紧急事件期间,即使现代通信网络瘫痪,AM广播仍然可以提供关键的信息和警报。例如,美国 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/09/25/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B/" title="飞马模型"><img class="post-bg" src="/2024/09/25/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B9%E5%A4%A7%E4%B8%BB%E9%A2%98.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="飞马模型"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/09/25/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%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">Created</span><time class="post-meta-date-created" datetime="2024-09-25T10:38:51.000Z" title="Created 2024-09-25 18:38:51">2024-09-25</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-10-08T03:12:14.635Z" title="Updated 2024-10-08 11:12:14">2024-10-08</time></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/%E8%BD%AF%E4%BB%B6%E5%B7%A5%E7%A8%8B/">软件工程</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E9%A2%86%E5%9F%9F%E5%BB%BA%E6%A8%A1/">领域建模</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/DDD/">DDD</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E9%87%91%E8%9E%8D%E7%A7%91/">金融科</a></span></div><div class="content">飞马模型来自 IBM 的 FSDM 模型飞马模型可以覆盖银行、证券和保险业务场景,更加容易实现“全局最优”的金融信息互通、集成标准的建立。
飞马模型包括9类主题:产品、合约、条件、参与者、账户、事件、渠道、资源项、位置 。与FSDM的9大概念( 参与者、合约、条件、产品、地点/位置、分类、业务方向、事件、资源项)相比,飞马模型少了分类和业务方向,增加了账户和渠道两个主题,更加贴合金融业务特点。
账户的概念来源于会计核算中的会计账户。银行账户是客户在银行开立的存款账户、贷款账户、往来账户的总称。银行业务就是在账户体系基础上为个人和对公客户提供各种金融服务。账户体系定义所有的操作均以交易的形式发生,也就是信息模型中的事件。
渠道是银行为客户提供金融产品和服务的场所。渠道的作用在于触达客户、传递产品和服务、达成交易。对于传统金融机构,同时拥有线下渠道和线上渠道。而对于互联网金融来说,完全是线上渠道。这也决定了互联网金融的业务模式与传统金融机构相比存在较大的差异,渠道对于互联网金融来说意义更大。互联网渠道不仅能够完成触达客户、传递产品和服务、达成交易的基本作用,而且其所带来的全新优质的服务体 ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2024/04/28/%E4%B8%8D%E5%B8%B8%E8%A7%81%E7%9A%84-SQL/" title="不常见的 SQL"><img class="post-bg" src="/img/wall-paper-58.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="不常见的 SQL"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/04/28/%E4%B8%8D%E5%B8%B8%E8%A7%81%E7%9A%84-SQL/" title="不常见的 SQL">不常见的 SQL</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2024-04-28T06:30:08.000Z" title="Created 2024-04-28 14:30:08">2024-04-28</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-09-24T11:59:48.593Z" title="Updated 2024-09-24 19:59:48">2024-09-24</time></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/MySQL/">MySQL</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%A4%A7%E6%95%B0%E6%8D%AE/">大数据</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/SQL/">SQL</a></span></div><div class="content">窗口函数OVEROVER用于为行定义一个窗口,它对一组值进行操作,不需要使用GROUP BY子句对数据进行分组,能够在同一行中同时返回基础行的列和聚合列。
在这里要引入窗口函数和开窗函数的概念:
12345678910111213141516171819202122232425CREATE TABLE Employee(ID INT PRIMARY KEY,Name VARCHAR(20),GroupName VARCHAR(20),Salary INT)INSERT INTO EmployeeVALUES(1,'小明','开发部',8000), (4,'小张','开发部',7600), (5,'小白','开发部',7000), (8,'小王','财务部',5000), (9, null,'财务部',NULL), (15,'小刘',&# ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/02/04/%E3%80%8A%E7%98%9F%E7%96%AB%E4%B8%8E%E9%98%B2%E7%96%AB%EF%BC%8C%E5%9C%A8%E5%8E%86%E5%8F%B2%E4%B8%8E%E7%8E%B0%E5%AE%9E%E4%B9%8B%E9%97%B4%E7%9A%84%E9%AD%94%E5%B9%BB%E4%BA%A4%E6%9B%BF%E3%80%8B/" title="《瘟疫与防疫,在历史与现实之间的魔幻交替》"><img class="post-bg" src="/img/wall-paper-143.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="《瘟疫与防疫,在历史与现实之间的魔幻交替》"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/02/04/%E3%80%8A%E7%98%9F%E7%96%AB%E4%B8%8E%E9%98%B2%E7%96%AB%EF%BC%8C%E5%9C%A8%E5%8E%86%E5%8F%B2%E4%B8%8E%E7%8E%B0%E5%AE%9E%E4%B9%8B%E9%97%B4%E7%9A%84%E9%AD%94%E5%B9%BB%E4%BA%A4%E6%9B%BF%E3%80%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">Created</span><time class="post-meta-date-created" datetime="2024-02-04T11:41:43.000Z" title="Created 2024-02-04 19:41:43">2024-02-04</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-02-04T11:44:15.975Z" title="Updated 2024-02-04 19:44:15">2024-02-04</time></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/%E5%8E%86%E5%8F%B2/">历史</a></span></div><div class="content">
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2024/01/25/%E8%AE%BA%E5%80%BA%E5%8A%A1/" title="付鹏的财经世界-论债务"><img class="post-bg" src="/img/wall-paper-48.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="付鹏的财经世界-论债务"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/01/25/%E8%AE%BA%E5%80%BA%E5%8A%A1/" title="付鹏的财经世界-论债务">付鹏的财经世界-论债务</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2024-01-25T12:28:30.000Z" title="Created 2024-01-25 20:28:30">2024-01-25</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-05-06T09:28:58.717Z" title="Updated 2024-05-06 17:28:58">2024-05-06</time></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%8F%E6%B5%8E%E5%AD%A6/">经济学</a></span></div><div class="content">原文来自:付鹏的财经世界,备份到 github 上,向作者致以崇高的敬意。
论债务【一】:内债、外债、收税 和 “人口”导读
最近不少人常挂在嘴边的一句话是“内债不是债”,这让我想起了童年时期老一辈人常说的完整原话:“上联:债务不是债,下联:只要人还在,横批:人死债消。”然而,大部分人目前仅关注“内债不是债”的说法,却忽略了后半句“只要人还在这”的关键性。这似乎给这些人造成了一种感觉,即债务可以随意扩张,但实际上,关键的约束性在于下半句。如果下半句不被提及,就会造成巨大的理解偏差。 —-付鹏 东北证券首席经济学家
“债务不是债,只要人还在”父母那一代作为较早的金融行业的从业者,他们在一辈子工作中积累了非常深刻的经验总结,老一辈特别喜欢将其变成“对联”的形式让小孩子朗朗上口。这些“对联”不仅富有智慧,而且给年少的我会留下了深刻的印象,小的时候并不完全理解其中所包含的哲学思想,但是在之后成长的道路上却可以不断思考、领悟。
其中,我印象最深刻的一句是“ ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2024/01/22/datawarehouse%E7%9B%B8%E5%85%B3/" title="datawarehouse相关"><img class="post-bg" src="/img/wall-paper-179.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="datawarehouse相关"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/01/22/datawarehouse%E7%9B%B8%E5%85%B3/" title="datawarehouse相关">datawarehouse相关</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2024-01-22T10:32:01.000Z" title="Created 2024-01-22 18:32:01">2024-01-22</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2024-01-22T10:55:37.419Z" title="Updated 2024-01-22 18:55:37">2024-01-22</time></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/%E5%A4%A7%E6%95%B0%E6%8D%AE/">大数据</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E6%95%B0%E6%8D%AE%E4%BB%93%E5%BA%93/">数据仓库</a></span></div><div class="content">
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/11/11/%E3%80%8A%E6%AF%9B%E6%B3%BD%E4%B8%9C%E9%80%89%E9%9B%86%E3%80%8B/" title="《毛泽东选集》"><img class="post-bg" src="/2023/11/11/%E3%80%8A%E6%AF%9B%E6%B3%BD%E4%B8%9C%E9%80%89%E9%9B%86%E3%80%8B/%E6%AF%9B%E6%B3%BD%E4%B8%9C%E9%80%89%E9%9B%86%E7%AC%AC%E4%BA%94%E5%8D%B7.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="《毛泽东选集》"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/11/11/%E3%80%8A%E6%AF%9B%E6%B3%BD%E4%B8%9C%E9%80%89%E9%9B%86%E3%80%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">Created</span><time class="post-meta-date-created" datetime="2023-11-11T02:22:45.000Z" title="Created 2023-11-11 10:22:45">2023-11-11</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2023-12-12T07:14:05.966Z" title="Updated 2023-12-12 15:14:05">2023-12-12</time></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%AF%9B/">毛</a></span></div><div class="content">
《中国社会各阶级的分析》:本文对于阶级的分析和现当代的政治课本几乎如出一辙,不过更质朴许多。很明显,毛泽东当年并没有把它定于一尊的意思。不过读其文,可以想见当时底层人民的生态,以及他们对待富有者的不满态度。不过毛泽东敏锐地观察到了贫民敢于斗争,中产阶级不可靠,作为一个革命者倒算是找到了门路。后世他人都斗不过他,原因就在于毛泽东懂得什么样的人为我所用,什么样的人对付起来要毫不手软。
《湖南农民运动的考察报告》:作为报告,体例非常差,而且没有现代公文写作的规整。想来现在公文报告要囊括照顾的东西太多,又不能出现什么破绽,只好工工整整地写,成了八股。不过本文里面流露出毛泽东对于当时革命气氛的赞许。他亲眼目睹了辛亥以来的种种失败,觉得革命别无他法,只有解放最广大的农民群体才行。至于农民的愚昧无知等等,通通被他一笔带过,归到地主劣绅的罪有应得里面。可是对照文化大革命期间中国普通平民的“革命热情”,和他们勇于武斗夺权的性格,不免觉得毛泽东的想法过于乐观幼稚。现代人都有共识,革命急进不如渐进。急进只能解决生死存亡问题,不能解决长治久安问题。戴高帽游乡是个不错的解决办法。毛泽东赞扬农民制造恐怖,是因为 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/11/08/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/" title="读书笔记"><img class="post-bg" src="/2023/11/08/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/%E8%A5%BF%E6%96%B9%E5%93%B2%E5%AD%A6%E5%8F%B2%E5%B0%81%E9%9D%A2.jpeg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="读书笔记"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/11/08/%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0/" title="读书笔记">读书笔记</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">Created</span><time class="post-meta-date-created" datetime="2023-11-08T14:59:42.000Z" title="Created 2023-11-08 22:59:42">2023-11-08</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2023-12-12T07:15:35.266Z" title="Updated 2023-12-12 15:15:35">2023-12-12</time></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/%E5%8E%86%E5%8F%B2/">历史</a><span class="article-meta-link">•</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%93%B2%E5%AD%A6/">哲学</a></span></div><div class="content">罗素西方哲学史第一卷 古代哲学
哲学的基本问题是探寻世界的本源应该以怎样的形式存在于人的思维中,世界的运动规律应该以怎样的形式存在。它是否可以归一为一个叠床架屋一样的知识大厦,可以被人完全理解,给人以足够的启示。这个问题,人类已经用过数不清的文字来探讨,出现过难以一一罗列的思想家和观点。从这这一点上来说,哲学是一个很普遍的问题,所有对于普通问题有足够好奇心的人,都能把它上溯到基本问题的领域,简单的哲学道理人人能懂,而且得出的结论大同小异。然而直观的大同很容易解释,抽象的小异却往往令人感到南辕北辙。这还只是未经深入思考和现实检验的直观刻板的印象,便足以带来不同人的不同观点。不同的生活环境和不同的生活遭遇更是给人以不同的启迪。哲学简直变成了一个千变万化的问题,它没有正确答案,到了最后,连正确的问题是什么,都引人怀疑。人类最初的哲学家对于世界的构想,绝大部分都已经被证明是错误或者苍白无用的。而后随着自然科学的迅猛发展,哲学本身提出很多新的见解,足以反过来指导自然科学并且协同发展。然而在自然科学进入了一个不知道要往哪走的年代以后,哲学又再一次彷徨了。特别是人生如此短暂,人又是这样的无力软弱它不 ...</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/34/#content-inner">34</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="is-center"><div class="avatar-img"><img src="/img/rei.jpeg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">magicliang</div><div class="author-info__description">关于技术以及人生</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">Articles</div><div class="length-num">333</div></a><a href="/tags/"><div class="headline">Tags</div><div class="length-num">187</div></a><a href="/categories/"><div class="headline">Categories</div><div class="length-num">0</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/magicliang"><i class="fab fa-github"></i><span>Github</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/magicliang" target="_blank" title="Github"><i class="fab fa-github"></i></a><a class="social-icon" href="mailto:[email protected]" 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 fa-shake"></i><span>Announcement</span></div><div class="announcement_content">人生只是,守株待兔</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>Recent Post</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2024/10/09/%E4%B8%8D%E5%90%8C%E6%97%B6%E5%8C%BA/" title="不同时区"><img src="/img/wall-paper-156.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="不同时区"/></a><div class="content"><a class="title" href="/2024/10/09/%E4%B8%8D%E5%90%8C%E6%97%B6%E5%8C%BA/" title="不同时区">不同时区</a><time datetime="2024-10-09T10:59:51.000Z" title="Created 2024-10-09 18:59:51">2024-10-09</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/10/07/%E9%AB%98%E7%BA%A7%E7%AE%97%E6%B3%95%E8%AE%BE%E8%AE%A1%E5%92%8C%E5%88%86%E6%9E%90%E6%8A%80%E6%9C%AF/" title="高级算法设计和分析技术"><img src="/img/wall-paper-49.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="高级算法设计和分析技术"/></a><div class="content"><a class="title" href="/2024/10/07/%E9%AB%98%E7%BA%A7%E7%AE%97%E6%B3%95%E8%AE%BE%E8%AE%A1%E5%92%8C%E5%88%86%E6%9E%90%E6%8A%80%E6%9C%AF/" title="高级算法设计和分析技术">高级算法设计和分析技术</a><time datetime="2024-10-07T11:42:09.000Z" title="Created 2024-10-07 19:42:09">2024-10-07</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/10/05/%E6%97%A0%E7%BA%BF%E7%94%B5%E6%B3%A2/" title="无线电波"><img src="/img/wall-paper-12.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="无线电波"/></a><div class="content"><a class="title" href="/2024/10/05/%E6%97%A0%E7%BA%BF%E7%94%B5%E6%B3%A2/" title="无线电波">无线电波</a><time datetime="2024-10-05T08:29:56.000Z" title="Created 2024-10-05 16:29:56">2024-10-05</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/09/25/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B/" title="飞马模型"><img src="/2024/09/25/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B9%E5%A4%A7%E4%B8%BB%E9%A2%98.png" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="飞马模型"/></a><div class="content"><a class="title" href="/2024/09/25/%E9%A3%9E%E9%A9%AC%E6%A8%A1%E5%9E%8B/" title="飞马模型">飞马模型</a><time datetime="2024-09-25T10:38:51.000Z" title="Created 2024-09-25 18:38:51">2024-09-25</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2024/04/28/%E4%B8%8D%E5%B8%B8%E8%A7%81%E7%9A%84-SQL/" title="不常见的 SQL"><img src="/img/wall-paper-58.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="不常见的 SQL"/></a><div class="content"><a class="title" href="/2024/04/28/%E4%B8%8D%E5%B8%B8%E8%A7%81%E7%9A%84-SQL/" title="不常见的 SQL">不常见的 SQL</a><time datetime="2024-04-28T06:30:08.000Z" title="Created 2024-04-28 14:30:08">2024-04-28</time></div></div></div></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>Tags</span></div><div class="card-tag-cloud"><a href="/tags/%E8%AF%AD%E8%A8%80/" style="font-size: 1.1em; color: #999">语言</a> <a href="/tags/%E6%95%B0%E6%8D%AE/" style="font-size: 1.1em; color: #999">数据</a> <a href="/tags/%E6%80%A7%E8%83%BD%E6%B5%8B%E8%AF%95/" style="font-size: 1.18em; color: #999ca1">性能测试</a> <a href="/tags/%E6%AD%A6%E4%BE%A0%E5%B0%8F%E8%AF%B4/" style="font-size: 1.1em; color: #999">武侠小说</a> <a href="/tags/%E5%86%85%E5%AD%98/" style="font-size: 1.1em; color: #999">内存</a> <a href="/tags/%E5%8E%86%E5%8F%B2/" style="font-size: 1.5em; color: #99a9bf">历史</a> <a href="/tags/%E9%A3%8E%E6%8E%A7/" style="font-size: 1.1em; color: #999">风控</a> <a href="/tags/hypervisor/" style="font-size: 1.1em; color: #999">hypervisor</a> <a href="/tags/%E4%BA%BA%E7%94%9F/" style="font-size: 1.1em; color: #999">人生</a> <a href="/tags/Maven/" style="font-size: 1.42em; color: #99a6b7">Maven</a> <a href="/tags/Composer/" style="font-size: 1.1em; color: #999">Composer</a> <a href="/tags/Scala/" style="font-size: 1.26em; color: #999fa8">Scala</a> <a href="/tags/%E6%95%B0%E6%8D%AE%E6%8C%96%E6%8E%98/" style="font-size: 1.1em; color: #999">数据挖掘</a> <a href="/tags/Hyperledger-Fabric/" style="font-size: 1.34em; color: #99a3b0">Hyperledger Fabric</a> <a href="/tags/%E8%87%AA%E6%88%91%E6%8F%90%E5%8D%87/" style="font-size: 1.1em; color: #999">自我提升</a> <a href="/tags/%E7%A7%91%E5%B9%BB/" style="font-size: 1.1em; color: #999">科幻</a> <a href="/tags/%E6%B5%8B%E8%AF%95/" style="font-size: 1.26em; color: #999fa8">测试</a> <a href="/tags/%E7%AE%A1%E7%90%86/" style="font-size: 1.5em; color: #99a9bf">管理</a> <a href="/tags/Vue/" style="font-size: 1.1em; color: #999">Vue</a> <a href="/tags/%E6%95%B0%E6%8D%AE%E4%BB%93%E5%BA%93/" style="font-size: 1.1em; color: #999">数据仓库</a> <a href="/tags/%E8%A7%84%E8%8C%83/" style="font-size: 1.1em; color: #999">规范</a> <a href="/tags/%E6%95%B0%E5%AD%A6/" style="font-size: 1.26em; color: #999fa8">数学</a> <a href="/tags/%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1/" style="font-size: 1.1em; color: #999">面向对象</a> <a href="/tags/consensus/" style="font-size: 1.1em; color: #999">consensus</a> <a href="/tags/%E6%8F%92%E4%BB%B6%E5%8C%96/" style="font-size: 1.1em; color: #999">插件化</a> <a href="/tags/%E7%B3%BB%E7%BB%9F%E8%AE%BE%E8%AE%A1/" style="font-size: 1.26em; color: #999fa8">系统设计</a> <a href="/tags/%E4%BA%91%E5%8E%9F%E7%94%9F/" style="font-size: 1.1em; color: #999">云原生</a> <a href="/tags/%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86/" style="font-size: 1.1em; color: #999">异常处理</a> <a href="/tags/KOA/" style="font-size: 1.1em; color: #999">KOA</a> <a href="/tags/Logback/" style="font-size: 1.1em; color: #999">Logback</a> <a href="/tags/%E5%AD%97%E8%8A%82%E7%A0%81/" style="font-size: 1.1em; color: #999">字节码</a> <a href="/tags/hexo/" style="font-size: 1.1em; color: #999">hexo</a> <a href="/tags/Docker/" style="font-size: 1.5em; color: #99a9bf">Docker</a> <a href="/tags/%E6%80%9D%E7%BB%B4%E6%A8%A1%E5%BC%8F/" style="font-size: 1.1em; color: #999">思维模式</a> <a href="/tags/%E8%81%94%E7%9B%9F%E9%93%BE/" style="font-size: 1.1em; color: #999">联盟链</a> <a href="/tags/%E5%AD%98%E5%82%A8/" style="font-size: 1.18em; color: #999ca1">存储</a> <a href="/tags/%E5%89%8D%E7%AB%AF/" style="font-size: 1.1em; color: #999">前端</a> <a href="/tags/Echart/" style="font-size: 1.1em; color: #999">Echart</a> <a href="/tags/%E9%AB%98%E5%8F%AF%E7%94%A8/" style="font-size: 1.1em; color: #999">高可用</a> <a href="/tags/%E9%87%91%E8%9E%8D%E7%A7%91/" 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>Archives</span><a class="card-more-btn" href="/archives/" title="View More">
<i class="fas fa-angle-right"></i></a></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2024/10/"><span class="card-archive-list-date">October 2024</span><span class="card-archive-list-count">3</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2024/09/"><span class="card-archive-list-date">September 2024</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/2024/04/"><span class="card-archive-list-date">April 2024</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/2024/02/"><span class="card-archive-list-date">February 2024</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/2024/01/"><span class="card-archive-list-date">January 2024</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/2023/11/"><span class="card-archive-list-date">November 2023</span><span class="card-archive-list-count">4</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/10/"><span class="card-archive-list-date">October 2023</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/2023/09/"><span class="card-archive-list-date">September 2023</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>Info</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">Article :</div><div class="item-count">333</div></div><div class="webinfo-item"><div class="item-name">Runtime :</div><div class="item-count" id="runtimeshow" data-publishDate="2016-12-31T16:00:00.000Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">Total Count :</div><div class="item-count">962.5k</div></div><div class="webinfo-item"><div class="item-name">UV :</div><div class="item-count" id="busuanzi_value_site_uv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">PV :</div><div class="item-count" id="busuanzi_value_site_pv"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">Last Update :</div><div class="item-count" id="last-push-date" data-lastPushDate="2024-10-17T03:30:26.608Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">©2017 - 2024 By magicliang</div><div class="framework-info"><span>Framework </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>Theme </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="translateLink" type="button" title="Toggle Between Traditional Chinese And Simplified Chinese">簡</button><button id="darkmode" type="button" title="Toggle Between Light And Dark Mode"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="Toggle between Single-column and Double-column"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="Setting"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="Back To Top"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js?v=4.13.0"></script><script src="/js/main.js?v=4.13.0"></script><script src="/js/tw_cn.js?v=4.13.0"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/fancybox/fancybox.umd.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/snackbar.min.js"></script><div class="js-pjax"><script>(() => {
const $mermaid = document.querySelectorAll('#article-container .mermaid-wrap')
if ($mermaid.length === 0) return
const runMermaid = () => {
window.loadMermaid = true
const theme = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'default'
Array.from($mermaid).forEach((item, index) => {
const mermaidSrc = item.firstElementChild
const mermaidThemeConfig = '%%{init:{ \'theme\':\'' + theme + '\'}}%%\n'
const mermaidID = 'mermaid-' + index
const mermaidDefinition = mermaidThemeConfig + mermaidSrc.textContent
const renderFn = mermaid.render(mermaidID, mermaidDefinition)
const renderV10 = () => {
renderFn.then(({svg}) => {
mermaidSrc.insertAdjacentHTML('afterend', svg)
})
}
const renderV9 = svg => {
mermaidSrc.insertAdjacentHTML('afterend', svg)
}
typeof renderFn === 'string' ? renderV9(renderFn) : renderV10()
})
}
const loadMermaid = () => {
window.loadMermaid ? runMermaid() : getScript('https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js').then(runMermaid)
}
btf.addGlobalFn('themeChange', runMermaid, 'mermaid')
window.pjax ? loadMermaid() : document.addEventListener('DOMContentLoaded', loadMermaid)
})()</script></div><script defer="defer" id="ribbon" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/canvas-ribbon.min.js" size="150" alpha="0.6" zIndex="-1" mobile="false" data-click="true"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/activate-power-mode.min.js"></script><script>POWERMODE.colorful = true;
POWERMODE.shake = true;
POWERMODE.mobile = false;
document.body.addEventListener('input', POWERMODE);
</script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>