摘要: 一、for循环 1.1功能及语法 for循环是迭代循环机制(while是条件循环),语法如下: 1.2典型例子: 1.2.1猜年龄循环 1 realy_age = 30 2 for i in range(3): 3 age = int(input("pls input age:")) 4 if ag 阅读全文
posted @ 2016-10-17 17:41 liumj 阅读(196) 评论(0) 推荐(0) 编辑