2017年4月28日

【python】理解循环:for,while

摘要: 先看下for结构: 输出: 输入和输出: 输入和输出: 总结: range([start=0], stop, [step=1])函数的含义: 1,从start开始,到stop结束,步长是step; 2,如果range只有一个参数,那么从0开始到stop-1结束; 3,step默认步长是1,可以重新写 阅读全文

posted @ 2017-04-28 11:46 awildfish 阅读(195) 评论(0) 推荐(0) 编辑

导航