摘要: 1 while True: 2 a = 0 3 n = input('从0开始加到您所输入的数字:') 4 if n.isdigit() == True: 5 n = int(n) 6 for i in range(n+1): 7 a += i 8 else: 9 ... 阅读全文
posted @ 2017-09-10 05:12 feral 阅读(3175) 评论(0) 推荐(0) 编辑