【Python Challenge-4】linkedlist

本文通过Python脚本解析了一个不断变化的数值谜题,该谜题位于linkedlist.php页面上,通过逐步解密最终到达peak.html。过程中遇到了多个提示与误导,如需要将数值除以二或检查前一个数值等。

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

猥琐啊- -、

点开之后提示linkedlist.php,然后就点开。

发现是nothing这个东西会不断改变。


import re
from myTool import *

if __name__ == '__main__':
    # nothing = '12345'
    # nothing = '8022'
    nothing = '63579'
    r = re.compile(r'([0-9]+)')

    while True:
        html = get_content('linkedlist.php?nothing='+nothing)
        print html
        nothing = r.findall(html[0])[0]


中间有几个小插曲:

Your hands are getting tired and the next nothing is 94485 (- -、不解释)

16044: Yes. Divide by two and keep going. (8022 接着来)

82682:There maybe misleading numbers in the text. One example is 82683. Look only for the next nothing and the next nothing is 63579

如果82683:You've been misleaded to here. Go to previous one and check. (回去用63579 - -、)

最后结果是peak.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值