单项选择题
使用openCV读取一张图像返回img,下列说法正确的是()
A.img.itemsize属性返回img中每个元素大小
B.img.dtype属性返回img中元素类型
C.img.data属性返回img的数据
D.img.flat属性返回img的维度
点击查看答案
相关考题
-
单项选择题
下列选项中()可以使用matplotlib绘制线性线段图。
A.matplotlib.pyplot.figure(numpy.arange(7))
B.matplotlib.pyplot.plot(numpy.arange(7))
C.matplotlib.pyplot.figure(numpy.arange(8))
D.matplotlib.pyplot.plot(numpy.arange(8)) -
单项选择题
下列python库或模块中,主要用于解析JSON文档的是()
A.BeautifulSoup
B.HTML
C.XML
D.json -
单项选择题
使用python打开my.txt文件的代码如下:File=open(“my.txt”,”a”)假如在“my.txt”中写入”abcd”,下列操作不正确的是()
A.file.write(“abcd”)
B.file.write(list(“abcd”))
C.file.writelines(“abcd”)
D.file.writelines(list(“abcd”))
