每行输出七个数
# i=7;
#
# for i in range(1,31):
# print(i,end=' ')
# if i%7==0:
# print("\n")
#
#
输入数字求和
# total=0
# count=0
# while True:
# a=input("请输入数字且已b结束:")
# if a =='b':
# break
# else:
# total+=int(a)
# count+=1
# print("和是:",total)
# print("一多少个:",count)
# print("平均数:",total/count)
乘法表
# for n in range(1,10):
# for m in range(1,n+1) :
# print("%d*%d=%d"%(m,n,m*n),end=" ")
# print()