单选题

def AddApple(fruit=None):

    if fruit is None:

        fruit=[]

    fruit.append('Apple')

    return fruit

AddApple()

AddApple()

print(AddApple(['Pear']))

以上程序段运行的结果是?( )

A

['Pear','Apple']

B

['Pear','Apple','Apple']

C

['Apple','Pear','Apple','Apple']

D

['Apple']

赣ICP备20007335号-2