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
803 B
27 lines
803 B
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(reversed(self.expirience)) |
|
|
|
def represent(self) -> None: |
|
self.say(self.about()) |
|
self.say(self.summary) if self.summary else self.say("Немного занят, отвечу позднее.")
|
|
|