第17219题 程序题
补全Python代码:读取CSV文件输出身高不低于120的学号

请读取文件/data/subways.csv的数据,数据内容如下:

学号 身高
YZ07 116
SZ19 113
YZ02 121
CZ31 115
BZ20 119
TC03 112
SZ11 123
CZ15 117
YZ22 122
SZ38 125

下列代码实现了读取“学号”和“身高”信息,输出“身高”达到120的学号,请你补全代码。

import csv       
with open('/data/   ①     ') as f:          
    rows = list( csv.reader (f))           
    for row in rows[1:]:             
        if(int(row[1])>=120):             
            print(    ②     )
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
编辑模式
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析