Python中多维数组flatten的技巧

res00是一张rgb图

[x for sub1 in res00 for sub2 in sub1 for x in sub2]

列出所有像素值

原文地址:https://www.cnblogs.com/turtle920/p/5326817.html