2.19 循环嵌套(多重循环)
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
# 9*9乘法口诀表
for i in range(1, 10):
for j in range(1, i + 1):
result = j * i
print('%s x %s = %-5s' % (j, i, result), end='' )
print()