Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.15 KB | None | 0 0
  1. #  ______     ______     ______     ______     __   __     ______     __   __   __     ______     __  __     ______    
  2. # /\  ___\   /\  __ \   /\  == \   /\  __ \   /\ "-.\ \   /\  __ \   /\ \ / /  /\ \   /\  == \   /\ \/\ \   /\  ___\  
  3. # \ \ \____  \ \ \/\ \  \ \  __<   \ \ \/\ \  \ \ \-.  \  \ \  __ \  \ \ \'/   \ \ \  \ \  __<   \ \ \_\ \  \ \___  \  
  4. #  \ \_____\  \ \_____\  \ \_\ \_\  \ \_____\  \ \_\\"\_\  \ \_\ \_\  \ \__|    \ \_\  \ \_\ \_\  \ \_____\  \/\_____\
  5. #   \/_____/   \/_____/   \/_/ /_/   \/_____/   \/_/ \/_/   \/_/\/_/   \/_/      \/_/   \/_/ /_/   \/_____/   \/_____/
  6. #                                                                                                                      
  7. #  __  __     ______     __    __     ______        __     __     ______     ______     __  __                        
  8. # /\ \_\ \   /\  __ \   /\ "-./  \   /\  ___\      /\ \  _ \ \   /\  __ \   /\  == \   /\ \/ /                        
  9. # \ \  __ \  \ \ \/\ \  \ \ \-./\ \  \ \  __\      \ \ \/ ".\ \  \ \ \/\ \  \ \  __<   \ \  _"-.                      
  10. #  \ \_\ \_\  \ \_____\  \ \_\ \ \_\  \ \_____\     \ \__/".~\_\  \ \_____\  \ \_\ \_\  \ \_\ \_\                      
  11. #   \/_/\/_/   \/_____/   \/_/  \/_/   \/_____/      \/_/   \/_/   \/_____/   \/_/ /_/   \/_/\/_/                      
  12. #                                                                                                                      
  13.  
  14.  
  15. class Group:
  16.     def __init__(self, students, course, specialization):
  17.         self.students = students
  18.         self.course = course
  19.         self.specialization = specialization
  20.  
  21.  
  22. class Student:
  23.     def __init__(self, name, is_pay):
  24.         self.name = name
  25.         self.is_pay = is_pay
  26.  
  27.  
  28. class Specialization:
  29.     def __init__(self, name, disciplines):
  30.         self.name = name
  31.         self.disciplines = disciplines
  32.  
  33.  
  34. class LectureHall:
  35.     def __init__(self, num, group, lecturer):
  36.         self.num = num
  37.         self.group = group
  38.         self.lecturer = lecturer
  39.  
  40.  
  41. class Discipline:
  42.     def __init__(self, name, hours):
  43.         self.name = name
  44.         self.hours = hours
  45.  
  46.  
  47. class Lecturer:
  48.     def __init__(self, name, discipline):
  49.         self.name = name
  50.         self.discipline = discipline
  51.  
  52.  
  53. Student_1 = Student("Алексеев Алексей Алексеевич", False)
  54. Student_2 = Student("Михайлов Михаил Михайлович", True)
  55. Student_3 = Student("Натальина Наталья Натальевна", False)
  56.  
  57. Math = Discipline("Математика", 200)
  58. Computer_Science = Discipline("Информатика", 300)
  59. Physics = Discipline("Физика", 150)
  60.  
  61. Specialization_1 = Specialization("Прикладная информатика", [Math, Computer_Science, Physics])
  62.  
  63. Group_1 = Group([Student_1, Student_2, Student_3], 2, Specialization_1)
  64.  
  65. Lecturer_1 = Lecturer("Петров Петр Петрович", Math)
  66. Lecturer_2 = Lecturer("Анастасьева Анастасия Анастасьевна", Physics)
  67. Lecturer_3 = Lecturer("Виктореьва Виктория Викторьевна", Computer_Science)
  68.  
  69. LectureHall_1 = LectureHall(1, Group_1, Lecturer_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement