Пример #1
0
 def welcome(self):
     menu = '''
     1. 登录
     b. 返回上一层
     '''
     menu_dic = {
         '1': self.login,
     }
     back_flag = False
     while not back_flag:
         print(menu)
         choice = input('input your choice:')
         if choice == 'b':
             back_flag = True
             continue
         common.checkIn(choice, menu_dic)
Пример #2
0
 def welcome(self):
     menu = '''
     1. 管理员视图
     2. 学生视图
     3. 老师视图
     q. 退出
     '''
     menu_dic = {
         '1': admin_view.admin_view,
         '2': student_view.student_view,
         '3': teacher_view.teacher_view,
         'q': exit
     }
     while True:
         print(menu)
         choice = input('choose your view:')
         common.checkIn(choice, menu_dic)
Пример #3
0
    def menu_func(self):
        menu = '''
            1. 教课
            2. 查看课程列表
            3. 查看工资

            '''
        menu_dic = {
            '1': self.teach,
            '2': self.search_course,
            '3': self.search_salary,
        }
        back_flag = False
        while not back_flag:
            print(menu)
            choice = input('choice:')
            if choice == 'b':
                back_flag = True
                continue
            common.checkIn(choice, menu_dic)
Пример #4
0
 def menu_func(self):
     menu = '''
         1. 创建课程
         2. 创建老师
         3. 查看课程列表
         4. 查看老师列表
          
         '''
     menu_dic = {
         '1': self.create_course,
         '2': self.create_teacher,
         '3': self.search_courselist,
         '4': self.search_teacherlist,
     }
     back_flag = False
     while not back_flag:
         print(menu)
         choice = input('choice:')
         if choice == 'b':
             back_flag = True
             continue
         common.checkIn(choice, menu_dic)
Пример #5
0
    def menu_func(self):
        menu = '''
            1. 上课
            2. 选课
            3. 查看上课记录
            4. 查看已选课程
            5. 评价

            '''
        menu_dic = {
            '1': self.study,
            '2': self.course_select,
            '3': self.search_studyrecord,
            '4': self.search_course,
            '5': self.evaluate_teacher
        }
        back_flag = False
        while not back_flag:
            print(menu)
            choice = input('choice:')
            if choice == 'b':
                back_flag = True
                continue
            common.checkIn(choice, menu_dic)