Skip to content

Commit

Permalink
linkfix FINAL(maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
LY-Xiang authored Aug 12, 2024
1 parent 2bd9b77 commit 319166f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 教程/示例代码/linkfix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# coding=utf-8
from os import walk
from os.path import join
for path, _, files in walk('.'):
for file in files:
if not file.endswith('.md'):
with open(join(path, file) + '.md', 'w') as f:
f.write(f"[{file}](./{file} ':include')")

0 comments on commit 319166f

Please sign in to comment.