from collections import namedtuple
Student = namedtuple('Student' , 'name age email')
s = Student('caomenglin' , 18 , '1235456@qq.com')
s1 = Student('caomenglin1' , 18 , '123545678@qq.com')
print(s.name)
print(s1.age)
from collections import namedtuple
Student = namedtuple('Student' , 'name age email')
s = Student('caomenglin' , 18 , '1235456@qq.com')
s1 = Student('caomenglin1' , 18 , '123545678@qq.com')
print(s.name)
print(s1.age)