import calendar
print(calendar.calendar(2023))
print(calendar.month(2023, 8))
print(calendar.weekday(2023,8,28), " << 0부터 월요일")
print(calendar.weekday(2023,8,30), " << 2니까 수요일")
# 월 명
print(list(calendar.month_name)) # 첫칸은 빈칸
print(list(calendar.month_name)[1:]) #빈칸 잘라주기
# 월 명 약어
print(list(calendar.month_abbr)) # 첫칸은 빈칸
print(list(calendar.month_abbr)[1:]) # 빈칸 잘라주기
'Language > Python' 카테고리의 다른 글
vs코드에서 셀단위로 파이썬 코드짜기 (1) | 2024.12.27 |
---|---|
[Python] Pandas (0) | 2023.08.25 |
[Python] Numpy: Numerical Python (0) | 2023.08.23 |
[Python] 파일 입 · 출력, pickle 모듈 (0) | 2023.08.23 |
[Python] 데코레이터(decorator) · 래퍼함수 · 일급객체 · 클로저(closure) (0) | 2023.08.23 |