Python 基础教程
来源:互联网 发布:网络标准体系架构 编辑:程序博客网 时间:2024/05/16 11:36
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/OPython 异常处理Python 高级教程
Python 面向对象Python正则表达式Python CGI编程python操作mysql数据库Python使用SMTP发送邮件Python 多线程Python XML解析python GUI编程(Tkinter)Python2.x与3.x版本区别Python IDEPython JSON« Python continue 语句
Python 数字 »
Python pass 语句
Python pass是空语句,是为了保持程序结构的完整性。
Python 语言 pass 语句语法格式如下:
pass
实例:
#!/usr/bin/pythonfor letter in 'Python': if letter == 'h': pass print 'This is pass block' print 'Current Letter :', letterprint "Good bye!"
以上实例执行结果:
Current Letter : PCurrent Letter : yCurrent Letter : tThis is pass blockCurrent Letter : hCurrent Letter : oCurrent Letter : nGood bye!
« Python continue 语句
Python 数字 »
0 0
- Python基础教程
- Python基础教程
- Python基础教程
- Python 基础教程
- python 基础教程
- python基础教程
- 《Python基础教程》
- Python基础教程
- Python 基础教程
- Python基础教程
- python基础教程
- python基础教程
- python 基础教程
- Python基础教程
- Python 基础教程
- Python 基础教程
- python基础教程
- python基础教程
- 倔强的我依然在阿里云上搞出了图形界面
- Linux内核调试方法总结
- 【Hibernate】字符串形式的数字如何正确的比较大小
- Spring IOC的实现
- JSP中动态INCLUDE与静态INCLUDE的区别
- Python 基础教程
- 23种设计模式UML表示形式
- vi编辑器的使用(2)
- vi编辑器的使用(3)
- 函数可以返回结构体的原因
- iOS开发:详解Objective-C runtime
- 用 WEKA 进行数据挖掘,第 1 部分: 简介和回归
- 顺序队列
- ArrayList的使用