I just want to ignore some code and keep running if there's an exception In this case, how should I try-except? See if I'm right
try :
shutil.rmtree ( path )
except :
pass
There are two ways. The difference between the two methods is written below.
try:
doSomething()
except:
pass
Ina
try:
doSomething()
except Exception:
pass
Please write it with me. The difference between the two methods is
© 2024 OneMinuteCode. All rights reserved.