这个程序让你做了一堆老师的例子,然后把它们全部打印出来。teachers.append(globals()[name])
print("Please enter the name of 10teachers, the subject they teach, and the room they teach that subject in.")
for _ in range(10):
让我们假设一个老师想把n个学生加到数据库中。students = dict(input("enter students name and grade.Example 'Student C: '").split()print(students)
如果我们有1000名学生,这很好,但如果老师想在10名学生之后完成呢