
recognize the characters. maybe they are in the book,
but MAYBE they are in the page source.
挑战地址,点我
分析
根据提示需要查看网页源码,右键打开网页源码,可以看到有一段提示和一堆字符:
<!--
find rare characters in the mess below:
-->
<!--
%%$@_$^__#)^)&!_+]!*@&^}@[@%]()%+$&[(_@%+%$*^@$^!+]!&_#)_*}{}}!}_]$[%}@[{_@#_^{*
我们需要找出一堆字符中的稀有字符,先对这堆字符进行次数统计,这里用到了 collections 包中的 Counter 进行字符统计:
#!/usr/bin/env/ python3

本文介绍了Python Challenge的第二关通关攻略。通过查看网页源码,利用collections.Counter统计字符频率,找到稀有字符,解密出隐藏的单词,从而解锁下一关的URL:http://www.pythonchallenge.com/pc/def/equality.html。同时提到了使用dict进行统计的备选方法,并提供了相关官方文档链接。
最低0.47元/天 解锁文章
951

被折叠的 条评论
为什么被折叠?



