谢啾啾
发表于 2020-10-27 16:45:36
for i in range(1, 10):
for j in range(1, 10):
print(i*j, end=' ')
print('\n')
谢啾啾
发表于 2020-10-27 16:52:03
进阶版本hhhhhh
def chengfabiao(m,n):
for i in range(1, m+1):
for j in range(1, n+1):
print(i*j, end=' ')
print('\n')
row = int(input('请输入乘法表的行数:'))
line = int(input('请输入乘法表的列数:'))
print('%d行%d列的乘法表如下' %(row ,line))
chengfabiao(row, line)
逃兵
发表于 2020-12-18 11:43:24
for i in range(1,10):
for j in range(1,i+1):
print(j,'*',i,'=',i*j,sep='',end='')
print('')