#乘法口诀 for i in range(1,10):
for j in range(1,i+1):
print ( j,'*',i,'=',j*i,'',' ',end='')
print(end='\n')
注意使用的Python环境为 3.*
2
for i in range(1, 10):
print " ".join(["%d*%d=%d" % (j, i, i*j) for j in range(1, i+1)])
2024-03-03 22:11:28
#乘法口诀 for i in range(1,10):
for j in range(1,i+1):
print ( j,'*',i,'=',j*i,'',' ',end='')
print(end='\n')
注意使用的Python环境为 3.*
2
for i in range(1, 10):
print " ".join(["%d*%d=%d" % (j, i, i*j) for j in range(1, i+1)])
下一篇:python输出乘法口诀