Q132284591 发表于 2017-4-26 10:37:25

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.append(data)
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
页: [1]
查看完整版本: Python Challenge (level 12)