python 打印九九乘法表

i = 1
while i < 10:
j = 1
while j < i + 1:
a = j * i
print(f' {j}*{i}', '=', a, end='')
j += 1
print()
i += 1

你可能感兴趣的:(python 打印九九乘法表)