用python实现打印99乘法表

如何打印99乘法表(效果如下)呢?

用python实现如下:

def jiujiu():
    #打印九九乘法表
    for i in range(1,10):   #
        for j in range(1,i+1):   #
            print('{}*{} = {}	'.format(j,i,i*j),end="")
        print()

本文来自博客园,作者:anthinia,转载请注明原文链接:https://www.cnblogs.com/anthinia/p/10755327.html

原文地址:https://www.cnblogs.com/anthinia/p/10755327.html