小编Gra*_*ray的帖子

如何从 Python3 中的像素值列表创建图像?

如果我有以下格式的图像的像素行列表,如何获取图像?

[
   [(54, 54, 54), (232, 23, 93), (71, 71, 71), (168, 167, 167)],
   [(204, 82, 122), (54, 54, 54), (168, 167, 167), (232, 23, 93)],
   [(71, 71, 71), (168, 167, 167), (54, 54, 54), (204, 82, 122)],
   [(168, 167, 167), (204, 82, 122), (232, 23, 93), (54, 54, 54)]
]
Run Code Online (Sandbox Code Playgroud)

python python-imaging-library python-3.x pillow python-3.6

11
推荐指数
1
解决办法
3万
查看次数