我有一个date对象列表X ("%Y,%m,%d")和一个date Y,并希望有一个列表Z,其中所有日期与date Y相差+-10天,忽略年份。timeDelta = 10daysY = 2019-10-05
for i in range((currentDate-500000),currentDate,10000): # last 50 y
我有一个字典列表和一个for循环 dict(keyA=True, keyB=10, id=1),final_dcts = [] type_max = max((x for x in lst_of_dcts if x['keyA'] and x['id'] == i), key=lambda x: x[