Python Exception Handling Question!

Asked 1 years ago, Updated 1 years ago, 73 views

I'm going to load the file When dealing with Python Try, use the exception syntax If you ignore the error and proceed except: Don't you use pass?

If there is an error in the middle of the file at that time It only prints up to the part with the error Can you jump over the error part and print out the next part too!?

exception-handling

2022-09-21 16:11

1 Answers

If an exception occurs while reading the contents of the file, I think we can just read the next line instead of passingYo


2022-09-21 16:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.