Rainie999 发表于 2017-4-25 10:23:49

Python Challenge (level 19)

URI: http://www.pythonchallenge.com/pc/hex/bin.html
Username: butter; password: fly
说明:

解题方法:
import base64, wave, array
# Input ...
h = open("data")
a = array.array("c", base64.b64decode(h.read()))
a.byteswap()
h.close()
# ... Processing ...
h = wave.open("modified.wav", "wb")
h.setnchannels(1)
h.setsampwidth(1)
h.setframerate(22050)
# ... Output
h.writeframes(a.tostring())
h.close()过关答案:
idiot
页: [1]
查看完整版本: Python Challenge (level 19)