Vinson

Vinson

测试文章

发表于 2023-02-22
Vinson
阅读量 45

字符效果

  • 删除线 删除线(开启识别 HTML 标签时)

  • 斜体字 斜体字

  • 粗体 粗体

  • 粗斜体 粗斜体

  • 上标:X2,下标:O2

  • ==高亮==

  • Inline Code

引用:如果想要插入空白换行(即 <br> 标签),在插入处先键入两个以上的空格然后回车即可

超链接

脚注

这是一个简单的脚注 ^1 而这是一个更长的脚注 ^bignote.

图像

下面是一张我家硝子的壁纸?:
硝子1
再来一张好了?:
硝子2

代码

行内代码

在 VS Code 中按下 Alt + T + R 执行命令:npm install marked

代码片

Python 代码

class Animal:
    """ 动物类 """

    def __init__(self, age: int, name: str):
        self.age = age
        self.name = name

    def getInfo(self) -> str:
        """ 返回信息 """
        return f'age: {self.age}; name: {self.name}'


class Dog(Animal):
    """ 狗狗类 """

    def __init__(self, age: int, name: str, gender='female', color='white'):
        super().__init__(age, name)
        self.gender = gender
        self.__color = color

    def bark(self):
        """ 狗叫 """
        print('lololo')

    @property
    def color(self):
        return self.__color

    @color.setter
    def color(self, color: str):
        if color not in ['red', 'white', 'black']:
            raise ValueError('颜色不符合要求')
        self.__color = color


if __name__ == '__main__':
    dog = Dog(16, '啸天', gender='male')
    # 狗叫
    dog.bark()
    # 设置狗狗毛色
    dog.color = 'blue'
python

HTML 代码

<!DOCTYPE html>
<html>
    <head>
        <mate charest="utf-8" />
        <title>Hello world!</title>
    </head>
    <body>
        <h1>Hello world!</h1>
    </body>
</html>
html

列表

无序列表

  • 福建
    • 厦门
    • 福州
  • 浙江
  • 江苏

有序列表

  1. 动物
    1. 人类
    2. 犬类
  2. 植物
  3. 微生物

任务列表

表格

项目 价格 数量
计算机 $1600 5
手机 $12 12
管线 $1 234

特殊符号

© & ¨ ™ ¡ £
& < > ¥ € ® ± ¶ § ¦ ¯ « ·

X² Y³ ¾ ¼ × ÷ »

18ºC " '

Emoji 表情 ?

  • 马:?
  • 星星:✨
  • 笑脸:?
  • 跑步:?‍

数学公式

行间公式:
$\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f))$
行内公式 $E=mc^2$

Tip提示

在此输入内容

注意
这是一个警告

在此输入内容

在此输入内容

展开

content

评论
来发一针见血的评论吧!
表情

快来发表评论吧~

推荐文章
  • 测试文章

    20点赞10评论

  • webpack5(一)

    20点赞10评论