banner
OnePiece Blog

OnePiece Blog

Markdown 範例

文字 示例#

  • 基本文本

這行文本應被視為刪除文本。

這行文本呈現為底線。

這行文本呈現為粗體文本。

這行文本呈現為斜體文本。

  • 引言文本

這是一段引言段落。它與普通段落不同。

  • 表情符號1

那真是太有趣了!😃

  • 縮寫

HTML

列表 示例#

  • 水果

    • 蘋果
    • 橙子
    • 香蕉
  • 乳製品

    • 牛奶
    • 起司
  • 撰寫新聞稿

  • 更新網站

  • 聯繫媒體

引用 示例#

不要通過分享 記憶 來交流,通過 交流 來分享記憶。

Rob Pike2
{.blockquote}

引用 示例#

這是對一本書的引用3

數學 示例#

這是一個內聯 $-b \pm \sqrt {b^2 - 4ac} \over 2a$ 公式

這不是內聯公式:
x=a0+1a1+1a2+1a3+a4x = a_0 + \frac{1}{a_1 + \frac{1}{a_2 + \frac{1}{a_3 + a_4}}}
xX,yϵ\forall x \in X, \quad \exists y \leq \epsilon

表格 示例#

  • 基本表格
斜體粗體代碼
斜體粗體代碼
{.table}
  • 帶對齊的表格

{{< table "table-striped" >}}

#項目左對齊中間對齊右對齊
1.第一項目一些文本更多文本甚至更多文本
2.第二項目一些文本更多文本甚至更多文本
3.第三項目一些文本更多文本甚至更多文本
{{< /table >}}
  • 帶邊框的表格
#項目
1.第一項目
2.第二項目
3.第三項目
{.table .table-bordered .border-primary}

代碼 示例#

go#

package main

import (
    "fmt"
    "io/ioutil"
    "os/exec"
)

func main() {

    dateCmd := exec.Command("date")

    dateOut, err := dateCmd.Output()
    if err != nil {
        panic(err)
    }
    fmt.Println("> date")
    fmt.Println(string(dateOut))

    grepCmd := exec.Command("grep", "hello")

    grepIn, _ := grepCmd.StdinPipe()
    grepOut, _ := grepCmd.StdoutPipe()
    grepCmd.Start()
    grepIn.Write([]byte("hello grep\ngoodbye grep"))
    grepIn.Close()
    grepBytes, _ := ioutil.ReadAll(grepOut)
    grepCmd.Wait()

    fmt.Println("> grep hello")
    fmt.Println(string(grepBytes))

    lsCmd := exec.Command("bash", "-c", "ls -a -l -h")
    lsOut, err := lsCmd.Output()
    if err != nil {
        panic(err)
    }
    fmt.Println("> ls -a -l -h")
    fmt.Println(string(lsOut))
}

python#

import matplotlib.pyplot as plt

price = [2.50, 1.23, 4.02, 3.25, 5.00, 4.40]
sales_per_day = [34, 62, 49, 22, 13, 19]

plt.scatter(price, sales_per_day)
plt.show()

視頻 示例#

youtube#

bilibili#

簡報 示例#

  • slidev
  • webslides

Figma 示例#

圖片 示例#

image

ProcessOn 示例#

Footnotes#

  1. 表情符號速查表

  2. 上述引用摘自 Rob Pike 在 Gopherfest 2015 年 11 月 18 日的 演講

  3. 《Go 程式設計語言》。Alan A. A. Donovan 和 Brian W. Kernighan。2015。Addison-Wesley Professional。

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。