更正了删除文件的错误

This commit is contained in:
qing 2023-12-15 19:30:10 +08:00
parent b538778f69
commit d33b1f45b4

View File

@ -288,7 +288,7 @@ class Pan123:
if not str(file).isdigit():
print("请输入数字")
return -1
if 0 < file < len(self.list):
if 0 <= file < len(self.list):
file_detail = self.list[file]
else:
print("不在合理范围内")