? what changes?
Some checks failed
Sync from Gitea (main→main, keep workflow) / mirror (push) Has been cancelled

This commit is contained in:
Zheyuan Wu
2026-01-12 15:36:25 -06:00
parent 1485c44454
commit 33c02dc4a8
10 changed files with 581 additions and 581 deletions

View File

@@ -1,19 +1,19 @@
import os
course_code=input('We will follow the naming pattern of {class}_L{lecture number}.md, enter the course code to start.\n')
start=input('enter the number of lecture that you are going to start.\n')
end=input('Enter the end of lecture (exclusive).\n')
start=int(start)
end=int(end)
cur_dir = os.path.dirname(os.path.abspath(__file__))
while start<end:
# create a empty text file
file_name = os.path.join(cur_dir, f'{course_code}_L{start}.md')
fp = open(file_name, 'w')
fp.write(f'# Lecture {start}')
fp.close()
start+=1
import os
course_code=input('We will follow the naming pattern of {class}_L{lecture number}.md, enter the course code to start.\n')
start=input('enter the number of lecture that you are going to start.\n')
end=input('Enter the end of lecture (exclusive).\n')
start=int(start)
end=int(end)
cur_dir = os.path.dirname(os.path.abspath(__file__))
while start<end:
# create a empty text file
file_name = os.path.join(cur_dir, f'{course_code}_L{start}.md')
fp = open(file_name, 'w')
fp.write(f'# Lecture {start}')
fp.close()
start+=1
print("Complete")