feat: 2023/1 2023/2/1
This commit is contained in:
parent
ddb9cc5bf9
commit
c00b7912e2
55 changed files with 1293 additions and 1 deletions
|
|
@ -4,11 +4,12 @@ import os
|
|||
if __name__ == '__main__':
|
||||
sys.path.append('..')
|
||||
year = input('Enter year: ')
|
||||
filetype = input('Enter filetype: ')
|
||||
# create folders for the days and the py files
|
||||
for i in range(1, 26):
|
||||
if not os.path.exists(year + '/Day' + str(i)):
|
||||
os.makedirs(year + '/Day' + str(i))
|
||||
f = open(year + '/Day' + str(i) + '/Day' + str(i) + '.py', 'w')
|
||||
f = open(year + '/Day' + str(i) + '/Day' + str(i) + '.' + filetype, 'w')
|
||||
f.close()
|
||||
f = open(year + '/Day' + str(i) + '/input.txt', 'w')
|
||||
f.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue