捕获所有异常
#!/usr/bin/pythona = 10b = 0try: c = a/b print c print 'nothing happen...'#todo: catch all exceptionexcept Exception,e: print 'bad sth happen...',Exception,":",e