单项选择题
复制是我们日常生活中经常用到的一个操作,那么对一个文件,下列属于可以直接复制到这个文件的内容以及权限的shutil模块是()。
A.shutil.copy()
B.shutil.copy2()
C.shutil.copyfile()
D.shutil.copytree()
相关考题
-
单项选择题
有img0、img1、img2、img3四张图合成一张图img,现要img3呈现在img的左下角方位,下列可以实现的是()
A.matplotlib.pyplot.subplot(222);matplotlib.pyplot.imshow(img3);matplotlib.pyplot.title(‘img’)
B.matplotlib.pyplot.subplot(223);matplotlib.pyplot.imshow(img3);matplotlib.pyplot.title(‘img3’)
C.matplotlib.pyplot.subplot(222);matplotlib.pyplot.imshow(img3);matplotlib.pyplot.title(‘img3’)
D.matplotlib.pyplot.subplot(224);matplotlib.pyplot.imshow(img3);matplotlib.pyplot.title(‘img’) -
单项选择题
文件的名字可以清晰的反映出它的作用,有时候这个文件的信息或者功能出现了改动,就对其进行重命名操作,那么下面在os模块中可以重命名文件或目录的方法为()。
A.os.rename()
B.os.move()
C.os.mkdir()
D.os.getcwd() -
单项选择题
使用requests库请求返回”https://www.python.org”这个网页的信息,下列正确的是()
A.requests.get(‘https://www.python.org’)
B.requests.delete(‘https://www.python.org’)
C.requests.post(‘https://www.python.org’)
D.requests.options(‘https://www.python.org’)
