Skip to content

Commit

Permalink
更新章节标题
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed Jan 12, 2022
1 parent fbd94ed commit cb7ca44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Assets/Scripts/create_solutions_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ def merge_readme_file(solotions_output_path, readme_head_path, readme_catalogue_
catalogue_list_file = open(solotions_output_path)
catalogue_list_lines = catalogue_list_file.readlines()
if len(catalogue_list_lines) > 0:
catalogue_list_title = '[' + catalogue_list_lines[0] + '](./Contents/00.Introduction/04.Solutions-List.md)'
catalogue_list_title = catalogue_list_title.replace('# LeetCode 题解', '## 10. LeetCode 题解')
catalogue_list_title = catalogue_list_lines[0].strip('\n')
catalogue_list_title = '## [' + catalogue_list_title + '](./Contents/00.Introduction/04.Solutions-List.md)'
catalogue_list_title = catalogue_list_title.replace('# LeetCode 题解', '10. LeetCode 题解')
readme_file.writelines(catalogue_list_title)
catalogue_list_file.close()

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,4 @@
- ~~[位运算知识](./Contents/09.Algorithm-Base/07.Bit-Operation/01.Bit-Operation.md)~~
- [位运算题目](./Contents/09.Algorithm-Base/07.Bit-Operation/10.Bit-Operation-List.md)

[## 10. LeetCode 题解(已完成 664 道)
](./Contents/00.Introduction/04.Solutions-List.md)
## [10. LeetCode 题解(已完成 664 道)](./Contents/00.Introduction/04.Solutions-List.md)

0 comments on commit cb7ca44

Please sign in to comment.