多项选择题
matplotlib是Python中一种图像处理库,该库最常用的pyplot,image等模块提供了图像读取imread(),展示imshow()等函数,下列关于matplotlib库使用正确的是()。
A.from matplotlib import pyplot;
B.from pyplot import matplotlib;
C.import matplotlib pyplot as plt;
D.from matplotlib image import imread;
点击查看答案
相关考题
-
多项选择题
图像通常使用numpy的数组表示,以下关于numpy数组ndarray属性,说法正确的是()。
A.size表示数组中单个元素的字节长度
B.dtype表示数组元素的数据类型对象
C.ndim表示数组的维度
D.shape表示数组的形状 -
多项选择题
下面一维图像矩阵a=[1,2,3,4,5],执行()命令,得到如下结果。
A.print(a[len(a)-1]);
B.print(a[-1]);
C.print(a[len(a)-1:len(a)]);
D.print(a[len(a):len(a)-1:-1]); -
多项选择题
要将文件1.jpg从/src目录移动到/dst目录,下面()代码是正确的。
A.os.rename(“/src/1.jpg”,”/dst/1.jpg”)
B.os.move(“/src/1.jpg”,”/dst/1.jpg”)
C.shutil.move(“/src/1.jpg”,”/dst/”)
D.shutil.move(“/src/1.jpg”,”/dst/1.jpg”)
