Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Day21-30/21.文件读写和异常处理.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down