def print_before(path):
print("Cleaning {} located at {}\n".format(path.split('/')[-1], path))
print(Fore.LIGHTBLUE_EX + "Folders before cleaning\n" + Fore.RESET)
for files in os.listdir(path):
print(files, end='\t')
print()
python类LIGHTBLUE_EX的实例源码
def print_after(path):
print(Fore.LIGHTBLUE_EX + "\nFolders after cleaning\n" + Fore.RESET)
for files in os.listdir(path):
print(files, sep=',\t')
print(Fore.LIGHTMAGENTA_EX + "\nCLEANED\n" + Fore.RESET)
def print_before(path):
print("Cleaning {} located at {}\n".format(path.split('/')[-1],path))
print(Fore.LIGHTBLUE_EX + "Before cleaning\n" + Fore.RESET)
for files in os.listdir(path):
print(files,end='\t')
print()
def print_after(path):
print(Fore.LIGHTBLUE_EX + "\nAfter cleaning\n" + Fore.RESET)
for files in os.listdir(path):
print(files,end='\t')
print(Fore.LIGHTMAGENTA_EX + "\n\nCLEANED\n" + Fore.RESET)