运动时长统计
类型:程序题

题目说明

图片

import csv
with open("/data/sport_240622.csv") as f:
    rows = list(        ①        )
    s=0
    c=0
    pj=0
    for row in rows[1:]:
        if(        ②        ):
            s=s+        ③
                   ④
    pj=s/c
    print(        ⑤        )

评分标准

(1)csv.reader(f) 或等效答案;(2分) (2)int(row[1])>40 或等效答案;(2分) (3)int(row[2]) 或等效答案;(2分) (4)c=c+1 或等效答案;(2分) (5)round(pj,2) 或等效答案。(2分)

代码编辑器 加载中...
留空使用题目默认限制
{{resultStatus.text}}
正在加载运行记录...
乐编题库AI助手
人工客服
微信扫码联系客服
历史对话
{{ s.title || '未命名对话' }}
{{ s.created_at }}
暂无历史对话
我能帮助你什么?