Pythonchallenge Level 19 (python 2.7)

2019-04-15 16:53发布

After looking into the source code
some key words attracted me: 'encoding:base64' 'indian.wav'
another interesting hint is about the pic: the colours for the the mainland and ocean are exchanged
Note: I copied the 'indian.wav' on my laptop

my code below:
>>> import base64
>>> wf=open('/home/..../indian.wav')
>>> d=base64.decodestring(wf)
>>> t=open('/home/..../df.wav','w')
>>> import wave
>>> f=wave.open('/home/..../df.wav')
>>> params=f.getparams()
>>> new_wav=wave.open('/home/..../new.wav','w')
>>> new_wav.setparams(params)
>>> for i in range(f.getnframes()):
new_wav.writeframes(f.readframes(1)[::-1])

the result is 'you are an idiot!' hence, the url is '..../idiot.html'