题库首页 › 青少年软件编程(Python) › 题目 16576

在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)

A:对
B:错

正确答案:正确

试卷来源:202509 青少年软件编程等级考试Python五级真题

本卷相关题目

在线做题 同科目题库