import csv
headers = (‘name’,‘age’,‘height’)
# students =[
# ("张三",18,180),
# ("李四",19,190),
# ("王五",20,170)
# ]
students =[
{“name”:“张三”,“age”:18,“height”:180},
{“name”:“李四”,“age”:19,“height”:190},
{“neme”:“王五”,“age”:20,“height”:170},
{“neme”:“赵六”,“age”:25,“height”:160}
]
# with open("students.csv",'w',encoding='utf-8') as fp:
#