728x90 Research/Python25 Python_문자열을 날짜 형식으로 바꾸기 Problem 웹크롤링을 진행하는 중 '21.09.28'와 같이 날짜를 표현한 문자열 데이터를 수집했다. 수집한 날짜 문자열 데이터를 날짜 형식으로 변경하려면 어떻게 해야할까? Solving 문자열 날짜 형식 바꾸기 관련해서 구글링을 하다가 'datetime.strptime()' 메소드를 알게되었다. strptime은 datetime 모듈의 메소드다. 파이썬 docs에 의하면 아래와 같다. date.strftime(format) Return a string representing the date, controlled by an explicit format string. Format codes referring to hours, minutes or seconds will see 0 values. ... 명.. 2021. 10. 9. 이전 1 ··· 4 5 6 7 다음 728x90