异常处理: 捕获全部异常



catch all errors and print them

try:
    cmd here
except:
    e = sys.exc_info()[0]
    print "error" + e