from datetime import date
from dateutil.rrule import rrule, DAILY


time_start = date(2016, 6, 1)
time_end = date(2016, 6, 15)

l = list(map(lambda i: str(i)[:10].strip(), rrule(DAILY, dtstart=time_start, until=time_end)))
print(l)


# ['2016-06-01', '2016-06-02', '2016-06-03', '2016-06-04', '2016-06-05', '2016-06-06', '2016-06-07', '2016-06-08', '2016-06-09', '2016-06-10', '2016-06-11', '2016-06-12', '2016-06-13', '2016-06-14', '2016-06-15']

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2018-03-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-08-21
猜你喜欢
  • 2021-11-07
  • 2022-12-23
  • 2018-09-29
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案