单选题

下面Python代码执行后的输出是 ( )。

tnt =0

for i in range(1,5,2):

tnt = tnt + i

print(tnt)

A

2

B

4

C

6

D

10

赣ICP备20007335号-2