1.for循环
print('输出一个九九乘法表:')
for i in range(1, 10):
for j in range(1, i+1):
print('{}*{}={}'.format(i, j, i * j), end='\t')
print()
2.while嵌套循环
# 99乘法表
i = 1
while i <= 9:
j = 1
while j <= i:
print(i, '*', j, '=', i * j, end=' ')
j += 1
print()
i += 1