Markdown Examples Part 3

Code blocks are preceeded by an indent, three : symbols and the name of the language.
All of the following code will be highlighted while the text is indented.

def do_twice(func):
def wrapper_do_twice(*args, **kwargs):
    return func(*args, **kwargs).lower()
return wrapper_do_twice

def say_whee(some_text):

x = 'Whee …
more ...

Markdown Examples Part 2

Images can be displayed in Markdown.
Text within the square brackets is the image name. The path to the image goes between the round brackets.
The {static} tag indicates the image is stored in the content folder. This setting can be changed in

python logo

Links to downloadable content such …

more ...

Markdown Examples Part 1

Basic markdown examples are shown below

This text is bold This text is also bold

This text is italic This text is also italic

This text is italic and bold

An h1 heading

An h2 heading

An h3 heading...

An h6 heading

A list with numbers: 1. One 2. Two …

more ...

My First Blog Post

Blog post content goes here

A list with numbers: 1. One 2. Two 3. Three

A list with bullets:
Bullet Bullet * Bullet

Here's a blockquote:

Simple is better than complex

Here's a table:

Column1 Column 2 Column 3
Value 1 Value 2 Value 3
Value 4 Value 5 Value 6 …
more ...



  1. 替换字段使用{}括起来,如果需要输出结果包含{}则应使用{% raw %}{{}}双花括号转义。

    In [1]: "{{test's string}}".format() Out[1]: "{test's string}"

  2. 使用未命名字段名替换和指定参数替换

    一般用法既可以使用未命名字段也可以指定参数,两种可单独使用也能混用,但是注意不能同时使用手动指定编号和自动编号: 混合使用法举例

    ::: In [5]: "{foo} {} {bar} {}".format(2, 4, foo=1, bar=3) Out[5]: '1 2 3 4'


    In [6]: "{foo} {1} {bar} {0}".format(4, 2 …

more ...