파이썬 현재시간, 날짜 표시하기 datatime
import datetime ########################## # 일반 파이썬 시계 ########################## print(datetime.datetime.now()) present_now = datetime.datetime.now() print(present_now) ########################## # 연도, 일자, 시간, 나오도록 표시 ########################## import time now = time.localtime() print("%04d/%02d/%02d %02d:%02d:%02d" % (now.tm_year, now.tm_mon, now.tm_mday, now.tm_hour, now.tm_min, now.tm_sec)) ..
2022.01.29