class Employee:
def __init__(self, name, position, hire_date):
self.name = name
self.position = position
self.hire_date = hire_date
def generate_notification(self):
notification = f"尊敬的{self.name},\n\n我们很高兴地通知您,您已被录用为{self.position}。您的入职日期为{self.hire_date}。\n\n期待您的加入!\n\n祝好,\n[公司名称]"
return notification
# 示例
employee = Employee("张三", "软件工程师", "2022年6月1日")
print(employee.generate_notification())
12-12
1641
09-05
07-22
1562