第25879题 单选题
Python输出N所有因子的代码填空,横线处应填入哪个表达式

以下Python代码实现从小到大的顺序输出能整除N的数(因子),例如N=18时输出 1 2 3 6 9 18 ,横线处应填入( )。

N = int(input())
for i in ________:
    if N % i == 0:
        print(i, end = ",")
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析