单选题

下面代码的输出结果是?( )

import numpy as np

x = np.array([1, 2, 3, 4, 5])

print(x[2:4])

A

[3 4]

B

[2 3]

C

[2 3 4]

D

[2 4]

赣ICP备20007335号-2