python exception
来源:互联网 发布:手机壁纸主题软件 编辑:程序博客网 时间:2024/05/16 16:19
捕获 python 异常
import systry: x = input('input the first number:') y = input('input the second number:') print('x/y = ', x/y)exception (ZeroDivisionError, TypeError, Number) as e:#exception (ZeroDivisionError, TypeError, Number), e python2.x print('your number is bogus') print e
- 打印输出异常,便于排查问题
0 0
- Python Exception
- Python Exception
- python exception
- Python Exception
- python exception
- python exception
- Python exception
- python的异常Exception
- Python Exception Name
- python学习exception
- python Exception 异常处理
- Python,异常 exception
- python re-raise exception
- Python中的try... exception
- python 获取exception 名字
- Python Built-in Exception
- Python 异常(Exception)
- python——exception
- NS3为脚本运行创建日志LOG
- 多种效果转换的轮播图
- 彩色转灰度算法(FPGA实现)
- .NET基础笔记(C#)
- 教你一招最屌的阅读开源项目的姿势
- python exception
- python字符串
- iframe 父页面a标签链接跳转子页面锚点方法
- Android -- service之绑定服务
- Tesseract 3.05及之后版本编译生成动态链接库DLL
- Lookup 方法注入和任意方法替换
- MapReduce程序测试
- Hibernate4 HQL查询占位符的问题
- $_GET、$_POST、$_COOKIE等几个数组进行转义函数