# 1.使用命名变量获取index
name,age,sex,email = range(4)
student = ('jim',16,'male','jim8721@gmail.com')
# student['name'] 'jim'
# 2.使用标准库collections.namedtuple
from collections import namedtuple
student = namedtuple('student',['name','age','sex','email'])
jim = student('jim','16','male','jim8721@gmail.com')
# jim.name jim
# jim.age 16