Python pass 语句
来源:互联网 发布:淘宝开两家店 编辑:程序博客网 时间:2024/05/19 16:47
Python pass是空语句,是为了保持程序结构的完整性。
passass 不做任何事情,一般用做占位语句。
范例:
# 输出 Python 的每个字母for letter in 'Python': if letter == 'h': pass print 'This is pass block' print 'current char:', letterprint "Bye!"
结果:
current char: Pcurrent char: ycurrent char: tThis is pass blockcurrent char: hcurrent char: ocurrent char: n<pre name="code" class="python">Bye!
0 0
- Python pass 语句
- Python pass语句
- Python pass 语句
- Python菜鸟--pass语句
- Python pass 语句
- Python pass 语句
- Python pass 语句
- Python pass 语句
- Python pass 语句
- Python pass 语句
- Python pass 语句
- python中pass语句
- Python pass 语句
- 【Python】pass 语句的用法
- python pass (空操作)语句
- python中pass语句学习
- python pass (空操作)语句
- Python pass语句啥用处?
- 一定要看的。深入理解Objective-C:Category
- jQuery学习之jQuery Ajax用法详解
- 线程通信
- 【NGUI】Rpg对话框
- HDU 2222 Keywords Search
- Python pass 语句
- Unity 内部类的属性序列化问题
- 孤儿进程、僵死进程
- Android轮播循环ViewPager
- 《java入门第一季》二维数组三个案例详解
- JS不间断横向滚动实现代码
- android回调实例
- list集合需要深入了解的问题
- 点是否在多边形内部 别人的博客