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

有如下Python程序: class Cars(): def __init__(self,color,shape): self.color = color self.shape = shape print('您定制的{}{}已经生产好了!'.format(self.color,self.shape)) new_car = Cars('红色','小汽车') 执行程序后,打印的结果是?( )

A:小汽车
B:红色
C:您定制的已经生产好了!
D:您定制的红色小汽车已经生产好了!

正确答案:D

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

本卷相关题目

在线做题 同科目题库