python中的while和for语句的简单使用
2016-06-12 22:58
525 查看
#coding:GBK # while a = 0 while a < 5: print a a = a + 1 #for循环语句用于迭代列表 for b in [2, 3, 4, 5]: print b
相关文章推荐
- Python数字
- 简单的启程,从这里开始
- python的if语句
- python
- Python升级导致的yum错误
- python中的字典遍历
- Hello Python
- python中字符串的操作符+,和*号
- Python 3.X 调用多线程C模块,并在C模块中回调python函数的示例
- python逻辑表达
- Python+Selenium进行UI自动化测试项目中,常用的小技巧1:读取excel表,转化成字典(dict)输出
- 使用Theano实现kaggle手写识别:logistic regression
- python虚拟环境的使用
- Python 的类学习笔记一
- python爬虫之爬取网页
- 进程、线程和协程的区别是什么
- 开源一套数据异地备份系统
- Python 模块使用
- 【忽略】Python操作数据库
- Python 偏函数