利用Python3自带的csv库进行操作,可使用以下程序获取class.csv文件中存储的表头信息,并进行输出。
import csv
with open('class.csv') as f:
reader=csv.reader(f)
head_row=next(reader)
print(head_row)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析