try: ..... except Exception, e: print 'repr(e):\t', repr(e) 转载于:https://www.cnblogs.com/ygj0930/p/8544213.html