Playground
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Cheatsheet
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Bold text
Italic text
Bold and italic text
Strikethrough text
Marked text
H2O
10-11
- Bullet point 1
- Bullet point 2
- Bullet point 3
- Numbered item 1
- Numbered item 2
- Numbered item 3
Column 1 | Column 2 |
---|---|
Cell 1 | Cell 2 |
Blockquote
def hello_world():
print("Hello world!")
def highlighted_method():
a = 100 ^ 2.0
b = 1 / a
print(b)
def with_linenums_starting_at_2():
print("The Peano Axioms!")
Line text inline code
line text #!python def inline_code_block()
[1] line text
E=mc2
Footnote[2]
提示
This cheatsheet is migrated from the deprecated site.
Markdown Demo
This is a highlighted text.
This is a text with highlighted sections.
Highlighted text in bold.
Highlighted text in italic.
Highlighted text in bold and italic.
function hello_world() {
console.log("Hello, world!");
}
A simple code block with no line numbers.
注
Code within a note block.
Highlighted text within a note block.
相关信息
Code within a info block.
Highlighted text within a info block.
提示
Code within a tip block.
Highlighted text within a tip block.
注意
Code within a warning block.
Highlighted text within a warning block.
警告
Code within a caution block.
Highlighted text within a caution block.
Font Ligature Test
a -> b -> c
// Stream API Example
import java.util.stream.Stream;
public class StreamExample {
public static void main(String[] args) {
Stream.of("apple", "banana", "orange")
.filter(fruit -> fruit.length() > 5)
.sorted()
.forEach(System.out::println);
}
}