import time
import os
from hashlib import sha256
class Duplython:
def __init__(self):
self.home_dir = os.getcwd(); self.File_hashes = []
self.Cleaned_dirs = []; self.Total_bytes_saved = 0
self.block_size = 65536; self.count_cleaned = 0
def welcome(self)->None:
print("****************")
print("******* Duplython****************")
print("******************\n\n**********************")
print("-------welcome---------")
time.sleep(3)
print('\ncleaning.........')
def main(self)->None:
self.welcome()
if __name__ == 'main':
App = Duplython()
App.main()
它不会打印welcome函数中的内容,这只是指南的第一部分,但它应该打印welcome中的文本
这是指南https://dev.to/kalebu/how-to-build-a-simple-file-cleaner-in-python-knn