像这样的东西
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..."
在 [1/0] 引发后,并且 [except ZeroDivisionError] 捕获错误,然后返回 [print "hello world"] 行,然后继续...