以下是使用 Python 语言实现的代码: ```python course_location = {'语文': 112, '数学': 214, '英语': 440} course_name = input("请输入课程名称:") if course_name in course_location: print(f"{course_name}课在{course_location[course_name]}教室") else: print("未找到该课程的上课地点") ``` [2024-10-24 21:23:46 | AI写代码神器 | 97点数解答]