码迷,mamicode.com
首页 > 其他好文 > 详细

循环语句

时间:2018-10-25 14:03:37      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:lis   for   生成   nbsp   list   while   range   索引   div   

while  判断条件:
执行语句
 
for语句
for  循环索引值  in 序列:
循环体
列表生成式
L=list(range(1,10))
 

循环语句

标签:lis   for   生成   nbsp   list   while   range   索引   div   

原文地址:https://www.cnblogs.com/renxiaoyan/p/9848862.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!