第17345题 程序题
Python递归实现九九乘法表代码补全

Python等级考试四级编程题:九九乘法表。 请补全下列代码,使用递归方法输出九九乘法表,输出效果如下: 九九乘法表示例

待补全代码:

def get_result(num):
    if num == 1:
        print("        ①        ")
    else:
        get_result(        ②        )
        for i in range(1,        ③        ):
            print("%d * %d = %d" % (i, num, i * num), end="  ")
        print()
get_result(        ④        )
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
编辑模式
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析