单选题

执行以下Python代码后,sum的值是?( )
sum = 0
for i in range(3):
   sum = sum + i * 3
print(sum)

A

0

B

3

C

9

D

18

赣ICP备20007335号-2