try-except tag

2 questions


1 answers
81 views
0
Is it possible to ignore exceptions in exception handling?

I just want to ignore some code and keep running if there's an exceptionIn this case, how should I try-except?See if I'm righttry : shutil.rmtree ( path )except : pass


1 answers
105 views
0
Enter the list of Python back when numbers are not the case law.

If you receive non-numeric characters to create the list, you will be prompted again, but the code will return to the beginning. How can I ask you to re-enter the part where the error occurred?while T...

1 years ago

© 2024 OneMinuteCode. All rights reserved.