Jupyter Markdown格式

发布时间:2024年01月13日

穿插在程序中,太复杂了喧宾夺主,太简单了不如注释。这样就刚刚好:

  1. Headers
# header 1
## header 2
### header 3
#### header 4

Output:

header 1

header 2

header 3

header 4

2. Horizontal Line

Use any of three to draw a horizontal line. 
*** 
---
___

Output:




3. Text formatting

Text formatting is important in order to highlight important keywords.

a. Text color
<span style='color:green'> message/text </span>
<span style='color:Blue'> Blue is my favorite color.  </span>
b. Text background
<span style='background:yellow'> message/text  </span>
<span style='background :yellow' > Background color is yellow </span>
c. Text font-family
<span style='font-family:font_family name'> message  </span>
<span style='font-family:Georgia'> It is Georgia font.
<span style='font-family:Helvetica'> It is  Helvetica font.
<span style='font-family:"Times New Roman"'> <span styel=''>It is "Times New Roman" font.
<span style='font-family:serif'> It is serif font.
<span style='font-family:sans-serif'> It is sans-serif font.
d. Text Emphasis
*Italic*  or _Italic_ 
**Bold** 
***Bold and Italic*** 

Italic or Italic
Bold
Bold and Italic

4. Blockquotes

> 1 Blockquotes
>> 2 Blockquotes
>>> 3 Blockquotes
>>>> 4 Blockquotes
>>>>>>>> 8 Blockquotes

Output:

1 Blockquotes

2 Blockquotes

3 Blockquotes

4 Blockquotes

8 Blockquotes

5. List

1. Main list <br>
a. Sub-list <br>
b. sub list 
2. Main list
* main list 

Output:

  1. Main list

    a. Sub-list

    b. sub list
  2. Main list
  • main list

6. Table

| How | To | Make | a table|
| :---: | :---: | :---: | :---: |
| in   | <span style= 'background:yellow'> Jupyter </span>| <span style= 'background:yellow'> Notebook </span>| <span style= 'background:yellow'> Markdown </span> |
| It | is | really| cool |
Note: Colons can be used to align columns.
:--- Left align
---: Right align
:---: Center align

Output:

HowToMakea table
in Jupyter Notebook Markdown
Itisreallycool
Note: Colons can be used to align columns.
:— Left align
—: Right align
:—: Center align

7. Link insertion

[My blog link ](https://blog.csdn.net/longwo888)

Output:
My blog link

文章来源:https://blog.csdn.net/longwo888/article/details/135565036
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。