. 以下程序实现:把'xiaoming'的个人信息填到family的csv文件中,再读取出来。空格处应填?( ) import json import csv fam = {'name':'xiaoming','age':18,'gender':'nan'} with open('family.csv','w') as f: json. (fam,f) with open('family.csv','r') as f1: read1 = json. (f1) print(read1)
【喵呜刷题小喵解析】:题目中,需要将字典`fam`的信息写入到csv文件中,所以应该使用`json.dump()`函数。而读取csv文件时,应该使用`json.load()`函数。因此,空格处应填`dump,load`,选项C正确。