I found it cumbersome to create a directory for 15 lessons each time a university class started, so I decided to create multiple directories in Python.
multiple_dir.py
import os
dir_num = [i for i in range(1, 16)]
for num in dir_num:
dir_name = 'No.' + str(num)
os.mkdir(dir_name)
It will be created in the current directory.
Recommended Posts