python 输出99乘法表
2021-02-12 01:18
标签:bsp code while rgb div python sep form pre python 输出99乘法表 标签:bsp code while rgb div python sep form pre 原文地址:https://www.cnblogs.com/director/p/14395302.htmli = 1
while i :
i += 1
j = 1
while j :
print("{}*{}=".format(j,i-1),j*(i-1),sep=‘‘,end=‘ ‘)
j += 1
print(‘‘)
for i in range(1,10):
for y in range(1,i+1):
print(‘{}*{}=‘.format(y,i),y*(i),end=‘ ‘,sep=‘‘)
print(‘‘)
for i in range(1,10):
for y in range(1,i+1):
print(‘{}*{}={}‘.format(y,i,y*i),end=‘ ‘,)
print(‘‘)