【转】python_类中两个构造函数时间:2021-08-24 19:27:12类中两个构造函数 @classmethod def today(cls): t = time.localtime() return cls(t.tm_year, t.tm_mon, t.tm_mday)