第30365题 单选题
已知Python列表切片遵循左闭右开的区间规则,现有列表nums = [10, 20, 30, 40, 50, 60, 70],若要获取包含30、40、50三个元素的子列表,以下写法正确的是?

左闭右开区间规则说明:区间包含起始位置对应的元素,不包含结束位置对应的元素。

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析