单选题

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

import numpy as np

student = np.dtype([('name','S20'), ('age', 'i2'),('height', 'f4')]) 

a = np.array([('Alice', 20, 55),('Jone', 21, 48)], dtype = student) 

print(a)

A

[(b'Alice', 20., 55.) (b'Jone', 21., 48.)]

B

[(b'Alice', 20., 55) (b'Jone', 21., 48)]

C

[(b'Alice', 20, 55.) (b'Jone', 21, 48.)]

D

{(b'Alice', 20, 55.), (b'Jone', 21, 48.)}

赣ICP备20007335号-2