单选题

执行以下 Python 代码,程序输出结果是( )。

sum=0

for i in range(1,10,3):

sum=sum+i

print(sum,i)

A

22 10

B

45 9

C

55 10

D

12 7

赣ICP备20007335号-2