Python 基础教程
Python 基础教程
Python 简介
Python 环境搭建
Python 中文编码
Python 基础语法
Python 变量类型
Python 运算符
Python 条件语句
Python 循环语句
Python While循环语句
Python for 循环语句
Python 循环嵌套
Python break 语句
Python continue 语句
Python pass 语句
Python 数字
Python 字符串
Python 列表(Lists)
Python 元组
Python 字典(Dictionary)
Python 日期和时间
Python 函数
Python 模块
Python 文件I/O
Python 异常处理
Python
高级教程
Python 面向对象
Python正则表达式
Python CGI编程
python操作mysql数据库
Python使用SMTP发送邮件
Python 多线程
Python XML解析
python GUI编程(Tkinter)
Python2.x与3.x版本区别
Python IDE
Python JSON
Python
pass 语句
Python pass是空语句,是为了保持程序结构的完整性。
Python 语言 pass 语句语法格式如下:
pass
实例:
#!/usr/bin/python for letter in 'Python': if letter == 'h': pass print 'This is pass block' print 'Current Letter :', letter print "Good bye!"
以上实例执行结果:
Current Letter : P Current Letter : y Current Letter : t This is pass block Current Letter : h Current Letter : o Current Letter : n Good bye!