本文是记录博主运用 Python 来解决 The Python Challenge 站点中每个关卡的难题。

说明:本文为博主自主原创,允许转载,但是必须标明来源出处及其作者,谢谢!

The Python Challenge 介绍

Python Challenge is a game in which each level can be solved by a bit of (Python) programming.

The Python Challenge was written by Nadav Samet.

All levels can be solved by straightforward and very short scripts.

Python Challenge welcomes programmers of all languages. You will be able to solve most riddles in any programming language, but some of them will require Python.

Sometimes you'll need extra modules. All can be downloaded for free from the internet.

It is just for fun - nothing waits for you at the end.

Keep the scripts you write - they might become useful.

原文大概意思如下:挑战 Python 是一个每个关卡都可以被一些(Python)编程解决的游戏。挑战 Python 是 Nadav Samet 写的。所有的关卡都可以通过非常明了的、简单的脚本解决。挑战 Python 欢迎运用任何一门编程语言的程序员。你将能够运用任何一门编程语言来解决每个关卡中的难题,他们其中某些人可能需要用到 Python。你有时会需要额外的模块。它们都可以从互联网中免费下载。仅仅是为了好玩,在最后并没有什么在等待你。你一直以来写的脚本可能会成为有用的。

The Python Challenge FAQ

What is the Python Challenge?

The Python Challenge is a set of riddles that require a little bit of Python programming to be solved. The solutions are entered by changing the address of the page (URL). You get used to the idea pretty fast after solving the first few levels.

What's the purpose of the Python Challenge?

I've written the challenge in hope that it will provide an entertaining way to explore the Python Programming Language. It is a way to demonstrate the great power of Python's batteries.

Where did you get the idea from?

I was inspired while I was playing notpron. It just occured to me that the same style of riddles can serve as a way to discover Python.

What is the Python programming language?

From Python website: "Python is an interpreted, interactive, object-oriented programming language. It is often compared to Tcl, Perl, Scheme or Java. Python combines remarkable power with very clear syntax. It has modules, classes, exceptions, very high level dynamic data types, and dynamic typing."

Where can I get Python?

Windows users: ActivePython (freeware) or Idle (opensource)

Mac users: MacPython (opensource)

Linux users: Most Linux distributions come with Python installed. Just type python in the shell.

Where can I learn Python?

Start with this excellent Python Tutorial.

Do I have to use Python to solve the riddles?

Most of the riddles can be solved with any language. Currently, only riddles 5 and 23 require Python. The hints in all riddles are geared towards Python programmers.

What level of Python knowledge is required for solving the riddles?

The riddles are designed to be solvable by Python newcomers and yet challenging even for Python experts. If you don't know how to do a certain thing in Python or you are referenced to an unfamiliar module - treat it as an opportunity to learn it. Google is your friend.

And if I get stuck solving a riddle?

Search for hints in the Python Challenge forums.

你准备好了吗?那就愉快地开始吧

第 00 关

Hint: try to change the URL address.

提示:尝试更改 URL 地址

分析:图片上显示的是 2 的 38 次方,所以猜到此用意是用计算 2 的 38 次方的结果去替换该挑战地址的 URL。

只要在终端输入如下代码即可:

>>> 2 ** 38

274877906944

用数字 274877906944 去更换 URL 中的 0 即可进入下一关卡。

第 01 关

everybody thinks twice before solving this.

待更新......

the python challenge_The Python Challenge 解密之旅相关推荐

  1. the python challenge_The Python Challenge 谜题全解(持续更新)

    Python Challenge(0-2) 是个很有意思的网站,可以磨练使用python的技巧,每一关都有挑战,要编写相应的代码算出关键词,才可以获取下一关的url,还是很好玩的QAQ LEVEL 0 ...

  2. the python challenge_The Python Challenge

    Python是著名的「龟叔」Guido van Rossum在1989年圣诞节期间,为了打发无聊的圣诞节而编写的一个编程语言,从诞生之初就显得有些随意. 说实话我们都或多或少有些厌烦那些复杂的语法,或 ...

  3. python下RSA加密解密以及跨平台问题

    项目合作需要,和其他网站通信,消息内容采用RSA加密方式传递.之前没有接触过RSA,于是两个问题出现了: 声明: 环境WIN 7 + python 2.6.6 RSA格式:PEM 一.Python下R ...

  4. python openssl 证书加解密过程感觉是这样

    python openssl 证书加解密过程感觉是这样 第一步 生成2048 bit的PEM格式的RSA Key:Key.pem openssl genrsa -out Key.pem -f4 204 ...

  5. Python凯撒密码解密

    Python 凯撒密码解密 简介 加密 解密 python程序. 其他参考文章 简介 在密码学中,恺撒密码(英语:Caesar cipher),或称恺撒加密.恺撒变换.变换加密,是一种最简单且最广为人 ...

  6. Python - AES SHA1PRNG 加密解密总结

    Python - AES SHA1PRNG 加密解密总结 Max.Bai 2020-11 上篇文章是当时研究AES加密的时候的记录,来龙去脉可以取看这篇 python3 - AES 加密实现java中 ...

  7. JS逆向加解密——python 实现AES加解密

    前言 写爬虫项目,做JS逆向或者APP逆向时,经常遇到网站的很多参数都经过AES加密解密,用python实现AES加解密是非常简单的,免去了扣JS代码,并且实现格式固定,所以本文提供实现好的AES加解 ...

  8. Python调用pikepdf模块解密PDF文件(使用tkinter模块绘制GUI)

    Python调用pikepdf模块解密.合并PDF文件(使用tkinter模块绘制GUI) 安装模块 pip install pikepdf 代码 #!/usr/bin/pythonimport os ...

  9. python实现AES加解密文档里英文字符串

    python实现AES加解密文档里英文文章 AES加解密文档里英文字符串 英文文档中也包含了空格与回车符 加密过程 首先读取文件中的内容 将文档中的内容读取,然后将其赋予你申请的变量 在我的实验中我的 ...

最新文章

  1. Opencv Mediapipe 人体追踪
  2. node版本升级for ubuntu
  3. ME3630模块常用指令介绍
  4. 上传图片方向不对 php,php-上传图片时出现错误,没有这样的路径或目录
  5. Spring Boot使用hikari、druid、c3p0等数据库连接池详解
  6. 【java并发编程艺术学习】(四)第二章 java并发机制的底层实现原理 学习记录(二) synchronized...
  7. 日本研发圆滚滚的球形无人机,被LED屏团团包围
  8. 在一个成熟行业里怎么生存下去?
  9. RS-485 通讯协议简介
  10. JavaCC语法分析实验二
  11. 浅谈12306核心模型设计思路和架构设计
  12. 使用Python比较两个文本文件的相似度
  13. 有别于普通专线的BGP线路
  14. python字典与集合
  15. 幼儿园观察记录的目的和目标_幼儿园观察目的是什么?
  16. 【Go】Go 错误处理
  17. Xamarin Getting Started翻译系列五--Android资源
  18. 微信大改版,不止炸群、放烟花,这些有趣功能你也需要了解下
  19. 办公室wifi信号因穿墙变弱了,该怎么办?
  20. 采用Slwave提取PCB差分走线的S参数

热门文章

  1. Core系统部署IIS报错
  2. request对象详解
  3. 硅谷的万圣节,看科技公司如何玩出新花样?
  4. 【信息技术】目标跟踪方法及其应用领域:元分析
  5. 商城项目-了解电商行业
  6. 爬虫之js加密参数破解步骤分析-百度翻译移动版sign值的获取
  7. 苹果手机 iphone 从旧手机 转移单个应用 数据 聊天记录 到新手机
  8. Android仿支付宝订单确认和支付
  9. layui数据表格某个字段不显示问题
  10. 为什么程序员“找不到对象”!几张图告诉你