代码:
1 a = [datetime.date(2010, 10, 20), 1, 4, datetime.date(2013, 10, 20)] 2 maz_=max(d for d in a if isinstance(d, datetime.date)) 3 print(maz_)
1 a = [datetime.date(2010, 10, 20), 1, 4, datetime.date(2013, 10, 20)] 2 maz_=max(d for d in a if isinstance(d, datetime.date)) 3 print(maz_)