Python Challenge (level 12)

URI: http://www.pythonchallenge.com/pc/return/evil.html
Username: huge; password: file
说明:

解题方法:
# Get the data from: http://www.pythonchallenge.com/pc/return/evil2.gfx

h = open("evil2.gfx", "rb")
data = h.read()
h.close()

new_data = [[], [], [], [], []]
n = 0

for byte in range(len(data) - 1):
    new_data[n].append(data[byte])
    n = 0 if n == 4 else n + 1

for n, elt in enumerate(new_data):
    h = open(str(n + 1), "wb")
    h.write("".join(elt))
    h.close()

过关答案:
disproportional

你可能感兴趣的:(html,python)