GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-tutorials/python-challenge/5808.py at master · feiskyer/python-tutorials Expand file tree/ Copy path5808.pyMore file actions executable file ·21 lines (16 loc) · 496 Bytes / Copy path5808.pyFile metadata and controlsexecutable file ·21 lines (16 loc) · 496 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #!/usr/bin/python # http://www.pythonchallenge.com/pc/return/5808.html import urllib import Image url="http://www.pythonchallenge.com/pc/return/cave.jpg" filename=url.split('/')[-1] urllib.urlretrieve(url,filename) # user: huge passwd: file img=Image.open(filename) w,h=img.size im=Image.new('RGB', (w/2,h/2)) for i in range(w): for j in range(h): if i%2==0 and j%2==0: im.putpixel((i / 2, j/ 2), img.getpixel((i,j))) im.save('even.png') # from the picture, we know next level is evil |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |