python

python day 로 for each while

기계새 2017. 2. 25. 01:04

target_at = datetime.datetime.strptime('2017-02-22', '%Y-%m-%d')

loop_size = timedelta(days=1)

limit_at = date.today()

while limit_at > target_at.date():    

    target_at += loop_size

    print(target_at)