文章目录
markdown支持的latex
markdown书写辅助工具
md中输入空格
\
\ 
\ 
表格行代码使用双层`` 1 ``
命令 | 含义 |
---|---|
export CUDA_VISIBLE_DEVICES=0,1 | 设置GPU可见设备 |
dos2unix demo.txt | 将window换行符切换到linux格式 |
wc -l `find . -name "key_groupby.txt"` | 查找文件,统计每个文件行数 |
wc -l `find . -name *text_seg_check.txt` | 查找文件,统计每个文件行数 |
wc -l `find . -name .*pred.txt` | 查找文件,统计每个文件行数 |
在表格中 可以用 左右两个``将其中的双引号 或者 其中的`给转移直接显示
word中alt+\后mathtype转latex后需要特殊处理
将word中的表格转换为markdown 表格方法,复制到notepad++中替换
其中align替换为aligned, array替换为matrix
{
b
1
=
y
ˉ
1
−
std
(
y
1
)
(
x
ˉ
1
std
(
x
1
)
x
ˉ
2
std
(
x
2
)
⋯
x
ˉ
p
std
(
x
p
)
)
(
∗
35
l
b
11
b
12
⋮
b
1
p
)
b
2
=
y
ˉ
2
−
std
(
y
2
)
(
x
ˉ
1
std
(
x
1
)
x
ˉ
2
std
(
x
2
)
⋯
x
ˉ
p
std
(
x
p
)
)
(
∗
35
l
b
21
b
22
⋮
b
2
p
)
\left\{ \begin{aligned} & {{b}_{1}}={{{\bar{y}}}_{1}}-\operatorname{std}({{y}_{1}})\left( \frac{{{{\bar{x}}}_{1}}}{\operatorname{std}({{x}_{1}})}\ \frac{{{{\bar{x}}}_{2}}}{\operatorname{std}({{x}_{2}})}\ \cdots \ \frac{{{{\bar{x}}}_{p}}}{\operatorname{std}({{x}_{p}})} \right)\left( \begin{matrix}{*{35}{l}} {{b}_{11}} \\ {{b}_{12}} \\ \vdots \\ {{b}_{1p}} \\ \end{matrix} \right) \\ & {{b}_{2}}={{{\bar{y}}}_{2}}-\operatorname{std}({{y}_{2}})\left( \frac{{{{\bar{x}}}_{1}}}{\operatorname{std}({{x}_{1}})}\ \frac{{{{\bar{x}}}_{2}}}{\operatorname{std}({{x}_{2}})}\ \cdots \ \frac{{{{\bar{x}}}_{p}}}{\operatorname{std}({{x}_{p}})} \right)\left( \begin{matrix}{*{35}{l}} {{b}_{21}} \\ {{b}_{22}} \\ \vdots \\ {{b}_{2p}} \\ \end{matrix} \right) \\ \end{aligned} \right.
⎩⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎨⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎪⎧b1=yˉ1−std(y1)(std(x1)xˉ1 std(x2)xˉ2 ⋯ std(xp)xˉp)⎝⎜⎜⎜⎛∗35lb11b12⋮b1p⎠⎟⎟⎟⎞b2=yˉ2−std(y2)(std(x1)xˉ1 std(x2)xˉ2 ⋯ std(xp)xˉp)⎝⎜⎜⎜⎛∗35lb21b22⋮b2p⎠⎟⎟⎟⎞
画图技巧(可用于排序演示)
Mermaid流程图github帮助文档
Markdown里面使用mermaid画流程图(基础)
md中字体和latex颜色
** color=**00ffff **
<font color=#FF0000>** color=**00ffff **</font>
公式对齐 和 颜色
E
n
t
r
o
p
y
(
S
s
u
n
n
y
)
=
−
2
5
l
o
g
2
2
5
−
3
5
l
o
g
2
3
5
=
0.971
=
−
2
5
(
l
o
g
2
2
−
l
o
g
2
5
)
−
3
5
(
l
o
g
2
3
−
l
o
g
2
5
)
=
−
2
5
(
l
o
g
e
2
l
o
g
e
2
−
l
o
g
e
5
l
o
g
e
2
)
−
3
5
(
l
o
g
e
3
l
o
g
e
2
−
l
o
g
e
5
l
o
g
e
2
)
【
这
里
推
到
是
为
编
程
方
便
】
\begin{aligned} Entropy\left( {{S}_{sunny}} \right)&=-\frac{2}{5}lo{{g}_{2}}\frac{2}{5}-\frac{3}{5}lo{{g}_{2}}\frac{3}{5}=0.971\\ &=-\frac{2}{5}\left( lo{{g}_{2}}2-lo{{g}_{2}}5 \right)-\frac{3}{5}\left( lo{{g}_{2}}3-lo{{g}_{2}}5 \right) \\ &=-\frac{2}{5}\left( \frac{lo{{g}_{e}}2}{lo{{g}_{e}}2}-\frac{lo{{g}_{e}}5}{lo{{g}_{e}}2} \right)-\frac{3}{5}\left( \frac{lo{{g}_{e}}3}{lo{{g}_{e}}2}-\frac{lo{{g}_{e}}5}{lo{{g}_{e}}2} \right) \end{aligned} \\ {\color{red}{【这里推到是为编程方便】}}
Entropy(Ssunny)=−52log252−53log253=0.971=−52(log22−log25)−53(log23−log25)=−52(loge2loge2−loge2loge5)−53(loge2loge3−loge2loge5)【这里推到是为编程方便】
md中公司字母加粗
$\pmb{\text{phone[hmm-state->hmm-state] \quad \text{transition-id}}}$
phone[hmm-state->hmm-state] transition-id \pmb{\text{phone[hmm-state->hmm-state] \quad \text{transition-id}}} phone[hmm-state->hmm-state] transition-idphone[hmm-state->hmm-state] transition-idphone[hmm-state->hmm-state] transition-id