# 2 命名的元祖from collections import namedtupleStudent = namedtuple('Student',['name','age','sex','email'])s = Student('jimi',16,'role','jian@qq.com')s.ages.names.email