解决啦
for i in range(80):
for j in range(60):
if img.get_pixel(i,j) < 120 :
img.set_pixel(i,j,255)
else:
img.set_pixel(i,j,0)
解决啦
for i in range(80):
for j in range(60):
if img.get_pixel(i,j) < 120 :
img.set_pixel(i,j,255)
else:
img.set_pixel(i,j,0)