http://www.pythonchallenge.com/pc/def/peak.html
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![ExpandedBlockStart.gif](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1
>>>
import
pickle, urllib
2 >>> handle = urllib.urlopen( ' http://www.pythonchallenge.com/pc/def/banner.p ' )
3 >>> data = pickle.load(handle)
4 >>> handle.close()
5 >>> for d in data:
6 print "" .join([e[ 1 ] * e[0] for e in d])
7
8 # #### #####
9 # ### ####
10 # ### ####
11 # ### ####
12 # ### ####
13 # ### ####
14 # ### ####
15 # ### ####
16 # ## #### ### ### ##### ### ##### ### ### ####
17 # ## ## #### ####### ## ### #### ####### #### ####### ### ### ####
18 # ## ### ##### #### ### #### ##### #### ##### #### ### ### ####
19 # ## #### #### ### ### #### #### #### #### ### #### ####
20 # ## #### #### ### #### #### #### #### ### ### ####
21 # ### #### #### ## ### #### #### #### #### #### ### ####
22 # ### #### #### ########## #### #### #### #### ############## ####
23 # ### #### #### ### #### #### #### #### #### #### ####
24 # ### #### #### #### ### #### #### #### #### #### ####
25 # ## #### #### #### ### #### #### #### #### ### ####
26 # ## ## #### #### ### #### #### #### #### #### ### ## ####
27 # ## ## #### #### ########### #### #### #### #### ### ## ####
28 # ## ###### ##### ## #### ###### ########### ##### ### ######
29
2 >>> handle = urllib.urlopen( ' http://www.pythonchallenge.com/pc/def/banner.p ' )
3 >>> data = pickle.load(handle)
4 >>> handle.close()
5 >>> for d in data:
6 print "" .join([e[ 1 ] * e[0] for e in d])
7
8 # #### #####
9 # ### ####
10 # ### ####
11 # ### ####
12 # ### ####
13 # ### ####
14 # ### ####
15 # ### ####
16 # ## #### ### ### ##### ### ##### ### ### ####
17 # ## ## #### ####### ## ### #### ####### #### ####### ### ### ####
18 # ## ### ##### #### ### #### ##### #### ##### #### ### ### ####
19 # ## #### #### ### ### #### #### #### #### ### #### ####
20 # ## #### #### ### #### #### #### #### ### ### ####
21 # ### #### #### ## ### #### #### #### #### #### ### ####
22 # ### #### #### ########## #### #### #### #### ############## ####
23 # ### #### #### ### #### #### #### #### #### #### ####
24 # ### #### #### #### ### #### #### #### #### #### ####
25 # ## #### #### #### ### #### #### #### #### ### ####
26 # ## ## #### #### ### #### #### #### #### #### ### ## ####
27 # ## ## #### #### ########### #### #### #### #### ### ## ####
28 # ## ###### ##### ## #### ###### ########### ##### ### ######
29