# -*- coding: UTF-8 -*-
# 作者：huanhuilong
# 标题：Python 类成员
# 描述：直接调用学生类的成员变量，打印学生信息

class Student:
    def __init__(self, no, name, age):
        self.no = no
        self.name = name
        self.age = age


def test():
    students = []
    for i in range(0, 3):
        s = Student(i, f'somebody_{i}', 20+i)
        students.append(s)

    for s in students:
        print('')
        print(f"* no:{s.no}")
        print(f"* name:{s.name}")
        print(f"* age:{s.age}")


if __name__ == '__main__':
    test()
