student={} for i in range(5): name=input('姓名') values=eval(input('年龄,身高、体重')) student[name]=values print(str(student))
示例是合并进字典,不是列表