Skip to content

Commit

Permalink
Update File classification.py
Browse files Browse the repository at this point in the history
  • Loading branch information
louzc authored May 8, 2022
1 parent 6bf6ed9 commit 0b7c953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions File classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
documentfiles = officeexcle+officeppt+officeword+txt+pdf
path = input("请输入路径,按回车键运行")
if not path:
path=r"C:\Users\louzh\下载"
path=r"C:\Users\%username%\下载"
def movefile(newpath):
if not os.path.exists(f"{path}/{newpath}"):
os.makedirs(f"{path}/{newpath}")
Expand Down Expand Up @@ -53,4 +53,4 @@ def del_dir(path): #这个函数写得不好烂,应该可以优化
print("执行完成")
ed = time.perf_counter()
runningtime = str(int(1000*ed-st)/1000)
print(f'本程序运行时间:{runningtime}秒')
print(f'本程序运行时间:{runningtime}秒')

0 comments on commit 0b7c953

Please sign in to comment.