Created
April 13, 2014 15:25
-
-
Save lufeihaidao/10588543 to your computer and use it in GitHub Desktop.
Q5 of python challenge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 推荐的做法 | |
import urllib2, sys, pickle | |
pickle_data = urllib2.urlopen('http://www.pythonchallenge.com/pc/def/banner.p').read() | |
data = pickle.loads(pickle_data) | |
for line in data: | |
for char, count in line: sys.stdout.write(char * count) | |
sys.stdout.write("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment