摘要: 法一:For循环 s = 0 for i in range(0, 101, 2): # range(start, stop, step) 不包括stop s += i print(s) 法二:while循环 s = 0 i = 0 while i < 101: if i % 2 == 0: s += 阅读全文
posted @ 2020-02-29 23:49 菜鸟小远 阅读(1305) 评论(0) 推荐(0)