3장
DATETIME¶ In [ ]: from datetime import datetime, date, time dt = datetime(2011, 10, 29, 20 , 30 , 21) dt.day Out[ ]: 30 In [ ]: dt.minute Out[ ]: 30 In [ ]: dt.date() #스트링 변환 포맷규칙 다양하게있음 dt.strftime('%Y-%d-%m %h:%m') Out[ ]: '2011-29-10 Oct:10' In [ ]: dt.strftime('%D') Out[ ]: '10/29/11' Range¶ In [ ]: range(10) Out[ ]: range(0, 10) In [ ]: list(range(10)) Out[ ]: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]..