You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
792 B
27 lines
792 B
3 years ago
|
from humans import AbstractHuman
|
||
|
|
||
|
|
||
|
class Employee(AbstractHuman):
|
||
|
known_companies=list()
|
||
|
current_company=None
|
||
|
expirience=list()
|
||
|
achivements=list()
|
||
|
|
||
|
def enter_job(self,job):
|
||
|
description=f"""
|
||
|
{job.start} -> {job.end}:
|
||
|
{repr(self.current_company)} - {job.position}
|
||
|
Мои обязанности и достижения:
|
||
|
{job.duties}
|
||
|
=============================
|
||
|
{self.achivements}
|
||
|
"""
|
||
|
self.expirience.append(description)
|
||
|
|
||
|
@property
|
||
|
def summary(self):
|
||
|
return "\n".join(self.expirience)
|
||
|
def represent(self) -> None:
|
||
|
self.say(self.about())
|
||
|
self.say(self.summary) if self.summary else self.say("Немного занят, отвечу позднее.")
|