第12128题 程序题
补全Python冒泡排序从小到大排序的代码

下列程序用冒泡排序算法将数列从小到大输出,请你补全代码。

c = [3, 6, 11, 18, 9, 12, 5, 2, 22, 10]
count = ①
for i in range(0, ②):
    for j in range(0, ③):
        if ④:
            t = c[j]
            ⑤
            c[j+1] = t
print(c)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
编辑模式
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析