File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ from PIL import Image
2+ from PIL import ImageSequence
3+
4+
5+ def main ():
6+ pic_path = "ufo/mandelbrot.gif"
7+ first_step (pic_path )
8+
9+
10+ def first_step (input ):
11+ im = Image .open (input )
12+ print (im .size )
13+ counter = 0
14+ for frame in ImageSequence .Iterator (im ):
15+ counter += 1
16+ print (counter )
17+ width = 640
18+ height = 480
19+ for x in range (width ):
20+ for y in range (height ):
21+ print (im .getpixel ((x , y )), end = " " )
22+ print ()
23+
24+
25+ if __name__ == "__main__" :
26+ main ()
Original file line number Diff line number Diff line change 11# pythonchallenge
22Solve Problems in http://www.pythonchallenge.com
33
4+ #### 31
5+ - use firefox visit the url get the hint: island: country
6+ - username: kohsamui password: thailand
7+
48#### 30
59result: http://www.pythonchallenge.com/pc/ring/grandpa.html
610``` python
You can’t perform that action at this time.
0 commit comments