==== 获取当前日期、时间的字符串 ==== from datetime import datetime datetime.today().strftime('%Y-%m-%d') datetime.today().strftime('%Y-%m-%d-%H:%M:%S')