You could use the walrus operator to assign a variable while testing pixel = None if (pixel_1 == colors[i] and (pixel := 1)) or (pixel_2 ...
確定! 回上一頁