import numpy as np
from PIL import Image
 
image=Image.open('cat.jpg')
image=np.copy(image) # 这一句
print(image.shape)
print(image)

 

相关文章: