pythonchallenge 解谜 Level 0

解谜地址:

http://www.pythonchallenge.com/pc/def/0.html

这题没什么难度,意思就是得到2的38次方的值,然后,替换

http://www.pythonchallenge.com/pc/def/0.html

的 0.html

所以直接上代码~

1 #-*- coding:utf-8 -*-
2 #代码版本均为python 3.5.1
3 #Level 0
4 
5 url = "http://www.pythonchallenge.com/pc/def/0.html"
6 s = 2**38
7 url = url.replace('0',str(s))
8 print (url)

接下来可以得到第一关的网址。

http://www.pythonchallenge.com/pc/def/map.html
原文地址:https://www.cnblogs.com/qipa/p/5499820.html