for m in range(1, 10):
for n in range(1, m+1):
print(str(n)+"*"+str(m)+"="+str(m*n), end=(" "))
print()
print("---------------------------------------------------------")
#逆序
for i in range(9,0,-1):
for j in range(i,0,-1):
print(str(i) + str("*")+str(j)+"="+str(i*j),end=" ")
print()
Python 乘法口诀表
最新推荐文章于 2022-08-24 20:09:30 发布