import datetime now = datetime.datetime.now() print(f'{now.year}-{now.month}-{now.day}')
혼자공부하는 파이썬에서 본 datetime이 문제에도 종종 쓰이니 기억해두자