for a in range(9,0,-1):
for b in range(a,0,-1):
print(str(a)+'*'+str(b)+'='+str(a*b),end=" ")
print()
知识点:
1.print()换行
2.str(X)转换X数值为字符
3.print(end="") 结尾默认是换行符,指定其他替换
for a in range(9,0,-1):
for b in range(a,0,-1):
print(str(a)+'*'+str(b)+'='+str(a*b),end=" ")
print()
知识点:
1.print()换行
2.str(X)转换X数值为字符
3.print(end="") 结尾默认是换行符,指定其他替换