单项选择题

在使用cv2.imshow()函数显示图像时,以下哪个函数用于关闭所有打开的窗口?()

A.cv2.destroyAllWindows()
B.cv2.waitKey()
C.cv2.closeWindows()
D.cv2.endShow()