python编码
def main():
a=int(input("请输入起始值"))
b=int(input("请输入结束值"))
if a>b:
a,b = b,a
count=1
numOfeachLine = 1
for i in range(a,b+1):
if count==numOfeachLine:
print("{:>4}".format(i))#换行
count = 1
numOfeachLine +=1
else:
print("{:>4}".format(i),end=" ")
count +=1
main()