PFP191_-_RE_-_SU_2023_530.webp
hoanghai90

PFP191_-_RE_-_SU_2023_530.webp

38
(Choose 1 answer)
The following code sequence fails with a traceback when the user enters a file that does not exist. How would you avoid the traceback and make it so you could print out your own error message when a bad file name was entered?fname = raw_input('Enter the file name: ')fhand = open(fname)
A. try/except
B. signal handlers
C. try/catch/finally
D. on error resume next


Thông tin

Category
PFP191
Thêm bởi
hoanghai90
Ngày thêm
Lượt xem
645
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PFP191_-_RE_-_SU_2023_530.webp
File size
53.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom