파이썬[Python]: datetime - day 변수
datetime 모듈 - date 클래스 - day 변수(variable)
/// 설명
date 객체 중 day 를 반환합니다.
※ 형식
date.day
※ 형식
date.day
/// 예제
1 2 3 4 5 6 7 | import datetime print(datetime.date.today()) # 2021-11-23 test_calendar = datetime.date.fromisocalendar(2021, 47, 2) print(test_calendar.day) # 23 | cs |
* 실행환경: Microsoft Windows 10 Homes
* 인터프리터: 파이썬(Python 3.9)
– 당신을 응원합니다. –
댓글
댓글 쓰기