首页 > 技术文章 > Python中多维数组flatten的技巧

turtle920 2016-03-27 21:04 原文

res00是一张rgb图

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

列出所有像素值

推荐阅读