반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- Java
- PostgreSQL
- c#
- Python
- list
- Mac
- SQL
- Google Excel
- GIT
- Tkinter
- Redshift
- gas
- google apps script
- dataframe
- hive
- PySpark
- math
- string
- Apache
- Kotlin
- Github
- PANDAS
- 파이썬
- array
- Google Spreadsheet
- matplotlib
- numpy
- Excel
- django
Archives
- Today
- Total
달나라 노트
Python calendar : calendar (특정 년도의 달력 보기) 본문
728x90
반응형
calendar module
calendar module은 python에서 달력을 볼 수 있게 해줍니다.
calendar : 특정 년도의 달력 보기
import calendar
print(calendar.calendar(2020))
위 코드는 2020년의 1월~12월 달력을 모두 출력해줍니다.
import calendar
print(calendar.prcal(2020))
calendar.calendar 함수와 동일한 기능으로 calendar.prcal 함수를 사용할 수도 있습니다.
728x90
반응형
'Python > Python calendar' 카테고리의 다른 글
Python calendar : day_name (요일, 요일 list, 요일 목록, weekday) (0) | 2022.03.17 |
---|---|
Python calendar : monthrange (특정 월의 시작 요일과 해당 월의 총 일수) (0) | 2020.12.23 |
Python calendar : weekday (특정 날짜의 요일을 숫자로 반환) (0) | 2020.12.23 |
Python calendar : prmonth (특정 년도 + 특정 월의 달력 추출) (0) | 2020.12.23 |
Comments