2019年7月11日

python的while练习题

摘要: 1. 使用while循环输出1 2 3 4 5 6 8 9 10count=0while count <10: count+=1 print(count) 2. 求1-100的所有数的和 count=0total=0#定义两个变量while count <=100: total +=count # 阅读全文

posted @ 2019-07-11 02:09 那一片白月光 阅读(1320) 评论(0) 推荐(0) 编辑

导航