如何在没有 if 语句的情况下使用 for (neighbor : img.getNeighbors(pixel)) { ... 将 3x3 像素变成一种颜色

问题描述 投票:0回答:0

enter image description here

我只熟悉使用 if 语句,但它要求不要使用任何 if 语句。

python pixel
© www.soinside.com 2019 - 2024. All rights reserved.