示例#1
0
 def __init__(self, courses):
     self.courses = []
     for course in courses:
         new_course = course(course.name, course.classroom, course.teacher,
                             course.ETCS, course.grade)
         self.courses.append(new_course)
示例#2
0
 def __init__(self, courses):
     self.courses = []
     for course in courses:
         new_course = course(paragraph_lines)
         self.paragraphs.append(new_pragraph)