def get_one_school():
    get_school_list()
    try:
        choose = int(input('choose your school index:'))
        school_obj = School.get_all()[choose]
    except Exception as e:
        print(e)
    else:
        print('学校信息:id:%s name:%s' % (school_obj.id, school_obj.name))
def create_class():
    get_school_list()
    try:
        choose = int(input('choose your school index:'))
        school_id = School.get_all()[choose].id
    except Exception as e:
        print(e)
    else:
        name = input('input class name:')
        Classes(name, school_id)
def get_school_list():
    show(School.get_all())
def get_school_list():
    School.get_all()