python datetime日期格式化
from datetime import datetime currentDateTime = datetime.now() print(currentDateTime.strftime("%Y-%m-%d %H:%M:%S"))
#######################