프로그래밍/Python
[python] Print Calendar
홍반장水_
2024. 1. 4. 15:03
반응형
[python] Print Calendar
from calendar import*
year = int(input('EnterYear: '))
print(calendar(year, 2, 1, 8, 3))
#2 = 2 characters for days (Mo, Tu, etc)
#1 = 1 line (row) for each week
#8 = 8 rows for each month
#3 = 3 columns for all months of the year.
반응형