pythonchallenge 解谜 Level 0

时间:2023-03-08 16:15:17

解谜地址:

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

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

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

的 0.html

所以直接上代码~

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

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

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