摘要: 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) 编辑