最老的:
oldest = min(datetimes)
现在最年轻:
now = datetime.datetime.now(pytz.utc)youngest = max(dt for dt in datetimes if dt < now)
欢迎分享,转载请注明来源:内存溢出
最老的:
oldest = min(datetimes)
现在最年轻:
now = datetime.datetime.now(pytz.utc)youngest = max(dt for dt in datetimes if dt < now)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)