有以下数据来自于一个嵌套字典的列表(可自定义这个列表),例如:
person_info = [{“name”:“草草”, “age”: 18, “gender”: “男”, “hobby”: “假正经”, “motto”: “I am yours”} , … 其他]
创建一个txt文本文件,来添加数据
a.第一行添加如下内容:name,age,gender,hobby,motto
b.从第二行开始,每行添加具体用户信息,例如:草草,17,男,假正经, I am yours
cainiao,18,女,看书,Lemon is best!
person_info = [{
"name": "草草", "age": 18, "gender": "男",
"hobby": "假正经", "motto": "I am yours"},
{
"name": "小花", "age": 19, "gender":<