单选题

运行下列python程序,输出结果是?(    )

alist=list(range(1,10))

print(alist[1::3])

A

[0, 3, 6]

B

[1, 4, 7]

C

[2, 5, 8]

D

[3, 6, 9]

赣ICP备20007335号-2