1、用while循环生成九九乘法表
i=1
while i<10:
j=1
while j<=i:
print(j,"*",i,"=",i*j,end='\t')
j+=1
i+=1
print()
2、用for循环生成九九乘法表
for i in range(1,10):
for j in range (1,i+1):
print(f"{j}*{i}={i*j}\t",end='')
print()