如下所示: class Date: def __init__(self, year, month, day): self.year = year self.month = month self.day = day # 实例方法 def tomorrow(self): self.day +=1 def __str__(self): return '{}/{}/{}'.format(self.year,self.month,self.day) # 静态方法 @staticmethod def format_date_str(date_str): year,