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

time库是常用的Python标准库,以下代码是简单获取时间的方法。运行该程序后的输出结果可能是?( ) import time localtime=time.asctime(time.localtime(time.time())) print('当前本地时间为:{}'.format(localtime))

A:当前本地时间为:2026 Feb 28 08:25:59
B:当前本地时间为:Feb 28 08:25:59 2026
C:当前本地时间为:Sat Feb 28 08:25:59
D:当前本地时间为:Sat Feb 28 08:25:59 2026

正确答案:D

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

本卷相关题目

在线做题 同科目题库