sh_01_九九乘法表

 

sh_01_九九乘法表

def multiple_table():

    # 1. 打印 9 行小星星
    row = 1

    while row <= 9:

        col = 1

        while col <= row:

            # print("*", end="")
            print("%d * %d = %d" % (col, row, col * row), end="\t")

            col += 1

        # print("%d" % row)
        print("")

        row += 1

 

posted @ 2019-09-14 15:40  俊豪郎  阅读(153)  评论(0编辑  收藏  举报