Skip to content

Playground

约 649 字大约 2 分钟

test

2024-06-04

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

Link


  • Bullet point 1
  • Bullet point 2
  • Bullet point 3

  1. Numbered item 1
  2. Numbered item 2
  3. Numbered item 3


Column 1Column 2
Cell 1Cell 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=mc2E = mc^2

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.

Link

Bold link

Italic link

Highlighted link

Highlighted link text


function hello_world() {
  console.log("Hello, world!");
}

A simple code block with no line numbers.


Link within a note block

Code within a note block.

Highlighted text within a note block.

Highlighted link within a note block

相关信息

Link within a info block

Code within a info block.

Highlighted text within a info block.

Highlighted link within a info block

提示

Link within a tip block

Code within a tip block.

Highlighted text within a tip block.

Highlighted link within a tip block

注意

Link within a warning block

Code within a warning block.

Highlighted text within a warning block.

Highlighted link within a warning block

警告

Link within a caution block

Code within a caution block.

Highlighted text within a caution block.

Highlighted link 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);
  }
}

春潮带雨晚来急,野渡无人舟自横。
春潮带雨晚来急,野渡无人舟自横。
春潮带雨晚来急,野渡无人舟自横。
此句写荒津野渡之景,在水急舟横的悠闲景象中,蕴含着诗人不在位、不得其用的无奈、忧虑、悲伤的情怀。
春潮带雨晚来急,野渡无人舟自横。
此句写荒津野渡之景,在水急舟横的悠闲景象中,蕴含着诗人不在位、不得其用的无奈、忧虑、悲伤的情怀。

  1. Inline syntax highlighting is not supported yet. ↩︎

  2. Footnote text ↩︎

坚守此岸