Pythonchallenge Level 12 (python2.7)

本文通过一系列步骤解析了一个复杂的图片文件,最终从该文件中提取出了五个不同的图片,并揭示了这些图片背后的答案:disproportional.html。文章详细介绍了如何使用Python代码按特定顺序读取原始文件的内容并拆分为多个部分。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

For this issue,
firstly, I downloaded the image, then I found its name was 'evil1.jpg'
ps: it would be perfect if you hold kind of curiosity! lol... because you may want to try what will happen if you try the name 'evil2.jpg'....
finally, a file named 'evil2.gfx' was downloaded.
Next,I was absolutely lost...


the code below is based on others' solutions:

>>> temp=''
>>> temp1=''
>>> temp2=''
>>> temp3=''
>>> temp4=''
#the reason for dividing this file into 5 parts comes from the initial pic
>>> for i in range(1,67575,5):
temp1=temp1+cont[i]
>>> for i in range(0,67575,5):
temp=temp+cont[i]
>>> for i in range(2,67575,5):
temp2=temp2+cont[i]
>>> for i in range(3,67575,5):
temp3=temp3+cont[i]
>>> for i in range(4,67575,5):
temp4=temp4+cont[i]
>>> open('0.jpg','w').write(temp)
>>> open('1.jpg','w').write(temp1)
>>> open('2.jpg','w').write(temp2)
>>> open('3.jpg','w').write(temp3)
>>> open('4.jpg','w').write(temp4)

5 pics are generated, put these words together then comes the answer: disproportional.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值