Can python ignore the error and return to the line next to the raised line
and going on
Something just like that
try:
1/0
print "hello world"
print "every thing seems fine..."
except ZeroDivisionError:
print "It is not a critical error, go to next..."
SomeWayAllowMeToExeutePrintHelloWorld_TheLineNextToTheRaisedLine()
except:
print "I have no idea, just stop work..."
After the [1/0] raised, and [except ZeroDivisionError] catched the error,
and then return to the [print "hello world"] line, and going on...
No comments:
Post a Comment