专题博客链接
[题解]浙大Python PTA课后习题博客记录(Python)
原题题目
代码实现(注意细节吧 细节matter AC)
low,high = map(int,input().split())
count = 0
sum = 0
for i in range(low,high+1):
count+=1
sum += i
print("{:>5d}".format(i),end = "")
if(count % 5 == 0 and i != high):
print(end = "\n")
print("\nSum = {:d}".format(sum))