-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.py
100 lines (69 loc) · 2.14 KB
/
template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
README_CN = """
| [English](README_EN.md) | 简体中文 | [Guidance 指南](Guidance.md) |
<p align="center">
<img src="https://img.shields.io/badge/用户-{user_name}-blue.svg?" alt="">
<img src="https://img.shields.io/badge/已解决-{num_solved}/{num_total}-blue.svg?" alt="">
<img src="https://img.shields.io/badge/简单-{ac_easy}-green.svg?" alt="">
<img src="https://img.shields.io/badge/中等-{ac_medium}-orange.svg?" alt="">
<img src="https://img.shields.io/badge/困难-{ac_hard}-red.svg?" alt="">
</p>
<h1 align="center">My LeetCode Solutions</h1>
<p align="center">
<br>
<b>最近一次更新:{time}</b>
<br>
</p>
<p align="center">This repo is powered by <a href="https://github.com/david990917/LeetCode-CN-Crawler">LeetCode-CN-Crawler</a>.</p>
| # | 题目 | 难度 | 标签 |
| :----: | :---- | :----: | :----: |
"""
README_EN = """
| English | [简体中文](README.md) | [Guidance 指南](Guidance.md) |
<p align="center">
<img src="https://img.shields.io/badge/User-{user_name}-blue.svg?" alt="">
<img src="https://img.shields.io/badge/Solved-{num_solved}/{num_total}-blue.svg?" alt="">
<img src="https://img.shields.io/badge/Easy-{ac_easy}-green.svg?" alt="">
<img src="https://img.shields.io/badge/Medium-{ac_medium}-orange.svg?" alt="">
<img src="https://img.shields.io/badge/Hard-{ac_hard}-red.svg?" alt="">
</p>
<h1 align="center">My LeetCode Solutions</h1>
<p align="center">
<br>
<b>最近一次更新:{time}</b>
<br>
</p>
<p align="center">This repo is powered by <a href="https://github.com/david990917/LeetCode-CN-Crawler">LeetCode-CN-Crawler</a>.</p>
| # | Title | Difficulty | Tags |
| :----: | :----- | :----------: | :----: |
"""
readme_adding = "|[{frontend_id}]({formal_url})|[{title}]({githubURL})|{difficulty}|{tags}|\n"
python___ = """
# 解题思路 √
## C++
### 方法 1:
```cpp
```
---
# 整理与总结
1. """
normal_solution = python___
sql_solution = """
# 解题思路 √
## SQL
### 方法 1:
```sql
```
---
# 整理与总结
1.
"""
shell_solution = """
# 解题思路 √
## sh
### 方法 1:
```sql
```
---
# 整理与总结
1.
"""