示例#1
0
from classroom import Student
from classroom import Teacher

me = Student('Sara', 'Anttila', 'electrical engineering')
print(me.printNameSubject())

she = Teacher('Sara', 'Anttila', 'ETG1')
print(she.printNameCourse())
示例#2
0
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 24 14:07:31 2021

@author: umera525
"""

from classroom import Student

me = Student('Benedikt', 'Daurer', 'physics')
me.printNameSubject()

from classroom import Teacher

x = Teacher('Umar', 'Ramadhani', 'Python programming')
x.printNameCourses()
示例#3
0
from classroom import Student
from classroom import Teacher



me = Student('Dana', 'Salar', 'Automation and robotics')
print('')

print('Student :')
print('')
print('First name  Last name  Subject area')
me.print_name_sub()

print('')

teacher = Teacher('Filipe','Maia','Python programming')
print('Teacher :')
print('')
print('First name  Last name  course')
teacher.print_name_course()
示例#4
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar  2 16:43:01 2021

@author: fernand
"""

from classroom import Student

me = Student('Fernand', 'Denoel', 'physics')
me.printNameSubject()
示例#5
0
#!/usr/bin/env python

from classroom import Student

some_student = Student('Rosalind', 'Franklin', 'Structure of DNA')
some_student.print_student()
示例#6
0
from classroom import Student, Teacher

if __name__ == '__main__':
    a = Student("Sebastian", "Cardoch", "physics")
    a.printNameSubject()

    a = Teacher("Filipe", "Maya", "Scientific Programming in Python")
    a.printNameCourse()
示例#7
0
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 17 14:10:26 2021

@author: Admin
"""

from classroom import Person, Student, Teacher


S = Student('Philipp','Pilar','ML/Physics')
S.info()

T = Teacher('Filipe','Maia','ASPP')
T.info()
示例#8
0
from classroom import Student, Teacher

august = Student("August", "Wollter", "physics")
august.printName()
august.printNameSubject()

filipe = Teacher("Filipe", "Maia", "Python Programming")
filipe.printNameCourse()