有如下程序代码:
import csv # ① headers = ['学号','姓名','分数'] rows = [['202001','张三','98'], ['202002','李四','95'], ['202003','王五','92']] with open('score.csv','w',encoding='utf8',newline='') as f : # ② writer = csv.writer(f) # ③ writer.writerow(headers) writer.writerows(rows) # ④
关于上述语句的解释,不正确的是?
①处功能为导入csv 库
②处以写方式打开文件
③处创建 csv.writer 实例
④处一次只能写入一行