Python使用While实现九九乘法口诀表

coding = utf-8

i = 0
while i < 9:
i += 1
j = i
x = 0
while x < j:
x += 1
print("{0} * {1} = {2}".format(x, i, i * x), end="\t")
print("")

你可能感兴趣的:(编辑随笔)