地址:http://www.pythonchallenge.com/pc/def/peak.html
需要使用到的内容:
pickle
pickle.loads(string)
pickle.load(file)
代码
import pickle
import urllib.request
link_pickle = urllib.request.urlopen("http://www.pythonchallenge.com/pc/def/banner.p")
pickle_banner = link_pickle.read()
data = pickle.loads(pickle_banner)
for i in data:
for j1, j2 in i:
print(j1*j2, end='')
print("")