Python Challenge (level 16)

xiaoxiao2026-09-09  1

URI: [url]http://www.pythonchallenge.com/pc/return/mozart.html[/url] Username: huge; password: file 说明: — 解题方法: import Image, ImageChops# Download the image from: http://www.pythonchallenge.com/pc/return/mozart.gifimage = Image.open("mozart.gif")magic = chr(195)for y in range(image.size[1]): box = 0, y, image.size[0], y + 1 row = image.crop(box) bytes = row.tostring() i = bytes.index(magic) row = ImageChops.offset(row, -i) image.paste(row, box)image.save("new.gif") 过关答案: romance 相关资源:pythonchallenge level2官方方法集
转载请注明原文地址: https://www.6miu.com/read-5052449.html

最新回复(0)