第11283题 判断题
判断给定Python时间处理代码的输出结果是否正确

在Python中,假设当前时间是2025年10月15日下午3点45分30秒,运行以下代码,判断输出结果是否为 2025-10-15 15:45:30:

from datetime import datetime
current_time = datetime.now()
formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
print(formatted_time)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析