博客内容模板

博客内容模板

文档头

使用---启用

1
2
3
4
5
6
7
8
title: 博客内容模板
date: 2024-09-13
categories:
- BlogSet
tags:
- BlogSet
number: true
mathjax: true
1
2
3
4
5
# 目前categories:
Love
BlogSet|个人bug|个人日记|个人感悟|
电脑知识|碎片知识|经济学|数学|
刷题|Redis|Java全栈|环境配置|深度学习|阅读笔记|操作系统学习

引用块与More

1
2
3
4
5
{%cq%}
文章摘要
{%endcq%}

<!--more-->

效果如下:

文章摘要

Tab标签分栏

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
语法:
{% tabs test1 %} # 标签块
# 第一页区域
<!-- tab 文本信息 -->
** this is Tab1**
<!-- endtab -->
# 第二页区域
<!-- tab xxx-->
** ww**
<!-- endtab -->
# 第三页区域
<!-- tab xxx-->
asa
<!-- endtab -->
{% endtabs %}

效果如下:

this is Tab1
1
2
3
4
5
6
7
8
9
class Solution:
def duplicate(self , numbers: List[int]) -> int:
# 法2:哈希表
record = {} // // 用来记录已遍历的数
for num in numbers:
if num not in record: # 未记录则添加
record[num] = 1 # value可以任意
else: return num # 已记录则返回该数
return -1