import urllib
import pickle

url = "http://www.pythonchallenge.com/pc/def/banner.p"

res = urllib.urlopen(url).read()
dat = pickle.loads(res)

for line in dat:
    string = ""
    for cnt in range(len(line)):
        char = line[cnt][0]
        for n in range(line[cnt][1]):
            string += char
    print string

'Wargame > pythonchallenge' 카테고리의 다른 글

pythonchallenge LEVEL 8  (0) 2017.04.15
pythonchallenge LEVEL 6  (0) 2017.04.14
pythonchallenge LEVEL 4  (0) 2017.04.12
pythonchallenge LEVEL 3  (0) 2017.04.12
pythonchallenge LEVEL 2  (0) 2017.04.12

+ Recent posts