s =" "
for num1 in range(1,10):
for num2 in range(1,num1+1):
s = str(num2) + " * "+str(num1) + " = " + str(num1*num2)+" "
print(s),
num1 = num1 + 1
python输出乘法口诀——10.31
最新推荐文章于 2021-09-06 18:54:56 发布
s =" "
for num1 in range(1,10):
for num2 in range(1,num1+1):
s = str(num2) + " * "+str(num1) + " = " + str(num1*num2)+" "
print(s),
num1 = num1 + 1