python 3.3 try..catch 小例
来源:互联网 发布:飞机大战子弹算法 编辑:程序博客网 时间:2024/06/05 10:03
s=input("input your age:")if s=="":raise Exception("input must not be empty.")try:i=int(s)except Exception as err:print(err)finally:print("Goodbye!")
运行结果:
- python 3.3 try..catch 小例
- python try catch 打印错误信息
- python catch exception and continue try block
- try catch
- try{} catch{}
- try catch
- try...catch
- try{} catch(...){}
- try catch
- try-catch
- try catch
- try-catch
- try catch
- try catch
- try catch
- try catch
- try catch
- try {...} catch (){....}
- data line color and utility
- Cracking The Coding Interview--Q1.1
- gbk uf8互换
- 简单认识C#中的控件
- [5月29日的脚本] 检索远程机器上所有本地用户的账户信息 (PowerShell)
- python 3.3 try..catch 小例
- java nio总结
- DOS命令之fc
- 泡沫之夏--我的六月
- PAT 1048
- vbscript中数组维数使用变量的方法
- NEFU 722 Anagram 全排列 STL
- 使用android隐藏api实现亮度调节
- DeviceIoControl的使用说明