This commit is contained in:
NormanIsComming 2025-05-21 14:59:55 +08:00 committed by GitHub
commit 4408512804
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ try:
data = file1.read(512)
while data:
file2.write(data)
data = file1.read()
data = file1.read(512)
except FileNotFoundError:
print('指定的文件无法打开.')
except IOError: