单选题

如下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

您定制的红色小汽车已经生产好了!

赣ICP备20007335号-2