您当前的位置: 首页 >  Python

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

python输出异常信息

柳鲲鹏 发布时间:2019-01-14 16:02:55 ,浏览量:0

示例代码如下: 

def action(img, frame_id):
    try:
        uuid=get()
        return uuid
    except Exception, e:
        print 'str(e):\t\t', str(e)
        print 'repr(e):\t', repr(e)
        print 'e.message:\t', e.message
        print 'traceback.print_exc():'; traceback.print_exc()
        print 'traceback.format_exc():\n%s' % traceback.format_exc()
        return None

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0557s