单选题

运行下方代码段,输出的结果是(   )。

a = 'rain cat and dog'

print(len(tuple(a))-len(set(a)))

A

3

B

4

C

5

D

6

赣ICP备20007335号-2