How to capture a screenshot and turn it into a numpy array with python code?

Thanks Steve! You are quite right,with your code above I have get the image array:

image_array.shape
--> (925, 1136, 4)

While I took a screenshot with GUI, and saved the png image file marked in red:

from skimage import io
img = io.imread('test.png')
img.shape

--> (925, 1136, 4)

yeah, It seems okay because the dimensions of both images are the same.
However,when I check the value of array it is not the same,am I missing something or maybe forgot some parameters setting?

(img == image_array).all()
--> False

P.S
This image is produced by image array with your help and code:
image

This image is produced by screenshot capture GUI:
image

Apparently,the two images are different from each other,do you think I am missing some parameters?