黑白照片1234567891011121314151617from PIL import Imageim = Image.open('3.png')width,height = im.sizebin = ''for x in range(width): for y in range(height): r,g,b = im.getpixel((x,y)) if r > 127: bin += '1' else: bin += '0'with open('flag1_out.txt','w')as f: f.write(bin) 更新: 2025-03-23 11:49:28原文: https://www.yuque.com/chaye-apqbl/vsc85q/dfvz5vsxme4tygob http://example.com/2026/01/19/MISC/照片/黑白照片/ Author chaye Posted on January 19, 2026 Licensed under Previous Next