35-函数-九九乘法表

def mtable(n):
    for i in range(1, n + 1):
        for j in range(1, i + 1):
            print('%s*%s=%s' % (j, i, i * j), end=' ')
        print()

mtable(6)
mtable(9)
    原文作者:凯茜的老爸
    原文地址: https://www.jianshu.com/p/ed6aaa56cfb4
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞