num = 1
while num <= 9:
tmp = 1
while tmp <= num:
print(tmp, "*", num, "=", tmp*num, end="\t")
tmp += 1
print("")
num += 1
测试结果:
2022-03-04 07:25:10
num = 1
while num <= 9:
tmp = 1
while tmp <= num:
print(tmp, "*", num, "=", tmp*num, end="\t")
tmp += 1
print("")
num += 1
测试结果: