地址:http://www.pythonchallenge.com/pc/def/peak.html
需要使用到的內(nèi)容:
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("")