def check_score(): score = student_interface.check_score_interface( student_info['user'] ) if not score: print('没有选择课程') print(score)
def check_score(): # 1.直接调用查看分数接口 score_dict = student_interface.check_score_interface( student_info.get('user')) if not score_dict: print('没有选择课程') print(score_dict)
def check_score(): while True: flag, course_list = student_interface.get_student_course( student_info['user']) if not flag: print(course_list) break else: for i, course in enumerate(course_list): print(f'{i}:{course}') choice = input('选择学校编号:') if choice == 'q': break if not choice.isdigit(): print('必须是数字 !') continue choice = int(choice) if choice not in range(len(course_list)): print('没有这个学校!') continue course_name = course_list[choice] flag, msg = student_interface.check_score_interface( student_info['user'], course_name) print(msg) break
def check_score(): score_dic = student_interface.check_score_interface( student_info.get('user')) if not score_dic: print('You have not choose course') print(score_dic)
def check_score(): print('欢迎查看成绩') username = user_info['username'] score = student_interface.check_score_interface(username) if not score: print('暂无成绩') else: print(score)
def check_score(): flag, msg = student_interface.check_score_interface( student_name.get('user') ) if flag: print(msg) else: print(msg)
def check_score(): print('查看分数') flag, score_dic_or_msg = student_interface.check_score_interface( student_info.get('user')) if flag: for course_name, score in score_dic_or_msg.items(): print(f'课程:{course_name},\t分数:{score}') else: print(score_dic_or_msg)
def check_score(): """ 查看学生信息 """ flag, msg = student_interface.check_score_interface( student_info.get('user')) if flag: print(f"学生成绩{msg}") else: print(msg)
def check_score(): print('欢迎来到查看成绩功能') username = user_info['username'] # 1. 获取课程 course_list = student_interface.get_student_course_list(username) for ind, course in enumerate(course_list): print(ind, course.name) # 2. 选择课程 course_choice = input('请输入你需要选择课程的序号>>>') course = course_list[int(course_choice)] score = student_interface.check_score_interface(username, course) if score: print(f'{username}学生课程{course.name}的成绩为{score}') else: print('当前课程没有成绩')
def check_score(): student_score = student_interface.check_score_interface( student_info.get('user')) print(student_score)
def check_score(): print('查看分数'.center(40, '-')) score_dict = student_interface.check_score_interface(student_info['name']) for i, j in score_dict.items(): print(f'课程:{i}\n分数:{j}')
def check_score(): score_dict = student_interface.check_score_interface(student_info['user']) if not score_dict: print('没有选择课程!') else: print(score_dict)
def check_score(): print(f'{"*"*13}欢迎来到查看成绩功能{"*"*13}') score_dic = student_interface.check_score_interface( student_info['username']) print(score_dic)
def check_score(): scores = student_interface.check_score_interface(student_info["name"]) print(scores)