Python语言实现九九乘法表

for m in range(1,10):
    for n in range(1,m+1):
        print("{0}*{1}={2}".format(m,n,(m*n)),end="\t")

    print()

效果图如下:Python语言实现九九乘法表_第1张图片

 

你可能感兴趣的:(python)