(我想到了每个主题的列表及其所需的索引) i与逻辑挣扎) 请帮我用#comments编写项目帮助 或algorythm我可以关注 我尝试过: #subjects subjectn =('你想要编辑什么科目') subject = [] 适用于学科的学生: student = input('Name of'学生你想添加') subject.insert(学生,学生) 添加=输入('添加另一个学生Y / N?:') #如果加上=='Y'or'y':坏你语法之处 #然后传递#useless #如果加上=='N'或'n': #break i need to generate a timetablefor a 5 day week7 lessons per daystudents can only be in one palce at a time same with teachersminimuim of 3 of each subject per weekuser must be able to edit students taking each subject(i thought of a list for each subject and in it index of who takes it)i struggling with logic)Please can i have help coding the project with #comments pleaseor a algorythm i can followWhat I have tried:#subjectssubjectn = ('What subject do you wish to edit')subject = []for students in subject: student = input('Name of student you wish to add') subject.insert(students, student) Add = input('add another student Y/N? :')# if Add == 'Y'or'y': bad use of syntax# then pass #useless# if Add == 'N' or 'n':# break推荐答案 可能比您想象的更复杂:自动生成的算法 学校讲座使用启发式方法 [ ^ ] Possibly more complicated than you think: An Algorithm to Automatically Generate Schedule forSchool Lectures Using a Heuristic Approach[^] 这篇关于使用Python 3的Genrate时间表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-30 03:28