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']
正确答案:A
试卷来源:202209 青少年软件编程等级考试Python四级真题