Advertisement
cd62131

schedule

May 21st, 2018
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. #!/usr/bin/python3
  2. # coding: utf-8
  3. from datetime import date, timedelta
  4. page = 120
  5. by_day = 30
  6. part = page // by_day + (0 if page % by_day == 0 else 1)
  7. review = [1, 7, 14, 30]
  8. for a, b in enumerate([date.today() + timedelta(days=x+y) for x in range(part) for y in review]):
  9.     print('{0} 回目: {1}'.format(a % len(review) + 1, b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement