半個小時學會Markdown標記語法

Python數據挖掘與文本分析&Stata應用能力提升與實證前沿雲特訓

學習編程的過程需要敲大量代碼,遇到很多錯誤,好腦子不如爛筆頭,能一邊敲代碼一邊做筆記,學起來事倍功半,今天分享大家一個做筆記的工具軟件Typora。

  • N級標題

  • This is an H2

    • This is an H3

  • 加粗、斜體

  • 高亮

  • 下劃線

  • 刪除線

  • 引用

  • 列表

    • 有序列表

    • 無序列表

  • 代碼塊

  • 表格

  • 超鏈接

  • 插入圖片

  • 任務清單

  • 數學公式

  • mermaid圖表

N級標題

一個#就是一個級,最多支持六級標題。

# This is an H1

## This is an H2

### This is an H3

效果如下

This is an H1

This is an H2

This is an H3

加粗、斜體

**加粗的文本**

加粗的文本

*斜體文本*

斜體文本

高亮

==highlight高亮==

==highlight高亮==

下劃線

<u>下劃線內容</u>

下劃線內容

刪除線

 ~~Mistaken text.~~

Mistaken text.

引用

> This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

效果如下

This is another blockquote with one paragraph. There is three empty line to seperate two blockquote.

列表

有序列表

ordered list:
1. Red
2. Green
3. Blue

ordered list:

  1. Red

  2. Green

  3. Blue

無序列表

un-ordered list:
- Red
- Green
- Blue

un-ordered list:

  • Red

  • Green

  • Blue

代碼塊

一般情況下,word等office軟件不支持代碼高亮,且存儲代碼容易亂行。以typora爲首的markdown語法完美支持各種代碼,這裏以Python代碼爲例

```python
import requests
url = 'https://www.baidu.com/'
resp = requests.get(url)
```
import requests
url = 'https://www.baidu.com/'
resp = requests.get(url)

表格

| First Column  | Second Column |
| ------------- | ------------- |
| Content Cell1 | Content Cell2 |
| Content Cell3 | Content Cell4 |
First ColumnSecond Column
Content Cell1Content Cell2
Content Cell3Content Cell4

超鏈接

[百度](https://www.baidu.com/)

百度

插入圖片

插入圖片的語法

![](圖片文件路徑或網址)
![](https://thunderhit.github.io/post/hugo/featured_hu9a15b8275a5635099198061a5e2dc1dd_3029870_720x0_resize_lanczos_2.png)

任務清單

某日任務清單
- [x] 6點起牀
- [ ] 步數達到10000步
- [x] 讀一小時書
- [x] 日消費不超過50元

某日任務清單

  • [x] 6點起牀

  • [ ] 步數達到10000步

  • [x] 讀一小時書

  • [x] 日消費不超過50元

數學公式

在markdown中用$夾住Latex公式表達式

$\lim_{x \to \infty} \exp(-x) = 0$

$y = a*x + b$

mermaid圖表

Typora中可以繪製流程圖、序列圖、狀態圖、甘特圖、餅形圖、類圖等,這裏以流程圖爲例

```mermaid
graph LR
 A-->B
 B-->C
 C-->D
```
graph LR
	A-->B
	B-->C
	C-->D
往期文章讀完本文你就瞭解什麼是文本分析

綜述:文本分析在市場營銷研究中的應用
從記者的Twitter關注看他們稿件的黨派傾向?

Pandas時間序列數據操作
70G上市公司定期報告數據集
文本數據清洗之正則表達式
Python網絡爬蟲與文本數據分析
shreport庫: 批量下載上海證券交易所上市公司年報
Numpy和Pandas性能改善的方法和技巧
漂亮~pandas可以無縫銜接Bokeh
YelpDaset: 酒店管理類數據集10+G
在Markdown中用mermaid語法繪製圖表

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章