[color=]datetime
[color=]import
[color=]date
,
[color=]timedelta
[color=]def
[color=]add_month
(
[color=]d
,
[color=]md
):
[color=]yd
=
[color=]md
//
[color=]12
[color=]m
=
[color=]d
.month +
[color=]md
%
[color=]12
[color=]if
[color=]m
!=
[color=]12
:
[color=]yd
+=
[color=]m
//
[color=]12
[color=]m
=
[color=]m
%
[color=]12
[color=]return
[color=]date
(
[color=]d
.year+
[color=]yd
,
[color=]m
,
[color=]d
.day)
[color=]start
=
[color=]date
(
[color=]2018
,
[color=]1
,
[color=]1
)
[color=]for
[color=]i
[color=]in
[color=]range
(
[color=]15
):
[color=]print
(
[color=]i
,
[color=]add_month
(
[color=]start
,
[color=]i
))