1.声明一个字典保存一个学生的信息,学生信息中包括: 姓名、年龄、成绩(单科)、电话、性别(男、女、不明)
stu = {
'姓名':'stu1', 'age':20, 'score':90, 'tel':'12213331444', 'sex':'男'}
2.声明一个列表,在列表中保存6个学生的信息(6个题1中的字典)
students = [
{
'name':'stu1', 'age':20, 'score':90, 'tel':'12213331444', 'sex':'男'},
{
'name':'stu2', 'age':21, 'score':80, 'tel':'13314441555', 'sex':'女'},
{
'name':'stu3', 'age':17, 'score':56, 'tel':'14415551666', 'sex':'女'},
{
'name':'stu4', 'age':23, 'score':73,</