파이썬에서 일을 년, 월, 일로 어떻게 변환합니까? 예를 들어, 누군가가 5,538 일이 된 경우. 어떻게 이렇게 년, 월, 일을 표시 할 수 있습니까? 15 세 2 개월 1 일
print "Please enter your birthday"
bd_year = int(raw_input("Year: "))
bd_month = int(raw_input("Month: "))
bd_day = int(raw_input("Day: "))
from datetime import date
now = date.today()
birthdate = date(int(bd_year), int(bd_month), int(bd_day))
age_in_days = now - birthdate
print "Your age is %s" % age_in_days
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다