
import shutil,os,re

path = r'D:\moveData_360\Users\lou\Documents\Python_100_Days_master'
for folder in os.listdir(path):
    if folder.startswith('Day'):
        new_folder = re.sub('-','_',folder)
        shutil.move(os.path.join(path,folder),os.path.join(path,new_folder))

b973ce0754fcc89b6e318517a6b73d74ffd2aa70
<mask token>

<mask token>
for folder in os.listdir(path):
    if folder.startswith('Day'):
        new_folder = re.sub('-', '_', folder)
        shutil.move(os.path.join(path, folder), os.path.join(path, new_folder))

<mask token>
path = 'D:\\moveData_360\\Users\\lou\\Documents\\Python_100_Days_master'
for folder in os.listdir(path):
    if folder.startswith('Day'):
        new_folder = re.sub('-', '_', folder)
        shutil.move(os.path.join(path, folder), os.path.join(path, new_folder))

import shutil, os, re
path = 'D:\\moveData_360\\Users\\lou\\Documents\\Python_100_Days_master'
for folder in os.listdir(path):
    if folder.startswith('Day'):
        new_folder = re.sub('-', '_', folder)
        shutil.move(os.path.join(path, folder), os.path.join(path, new_folder))


import shutil,os,re

path = r'D:\moveData_360\Users\lou\Documents\Python_100_Days_master'
for folder in os.listdir(path):
    if folder.startswith('Day'):
        new_folder = re.sub('-','_',folder)
        shutil.move(os.path.join(path,folder),os.path.join(path,new_folder))
