try: raiseexcept Exception, e: print (e) return false
python3 的时候
try: raiseexcept Exception as e: print (e) return false
来源: http://www.bubuko.com/infodetail-3286881.html