会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sky09115
博客园
首页
新随笔
联系
订阅
管理
2021年9月29日
关于while和for的嵌套循环的例子
摘要: x=1 i=1 while i<100: i+=1 if i%2==0: x+=1 print(i,end=" ") if x%10==0: print() print("偶数一共有%d个"%(x)) 这是关于while循环 这个程序实现了100以内偶数的输出以及换行 x=0 for i in ra
阅读全文
posted @ 2021-09-29 14:42 sky09115
阅读(652)
评论(0)
推荐(0)
编辑
公告