from PIL import Image import numpy as np data = np.ones((16, 16), ... 8] = 0 # 将中间的一些值置为0 print(data) img = Image.fromarray(data, ...
確定! 回上一頁