PythonChallenge-1-2017/7/12

题外话:之前在看python时也看到过“PythonChallenge”这个字眼,不过当时没在意,今天掏出来好好玩玩。

网址:http://www.pythonchallenge.com/

首页如图:

正题:

进入第一题:“http://www.pythonchallenge.com/pc/def/0.html

题目如图:

一眼看上去就3个数和一句话(线索:尝试改变url地址),好吧,看下url  (http://www.pythonchallenge.com/pc/def/0.html)先试下用3个数替换0

1.http://www.pythonchallenge.com/pc/def/1.html  ---------先看看改变url会有啥变化----------------结果:2**38 is much much larger. --------第一眼看不出啥意思,继续

2.http://www.pythonchallenge.com/pc/def/238.html  ---------------3个数全部输入---------------------结果:No... the 38 is a little bit above the 2...-------好吧,意思是2^38

当时我用笔记本自带的计算器计算的到:274877906944

 在python中计算:2**38 -----> 正如第一次测试时提示的

好了正确答案:http://www.pythonchallenge.com/pc/def/274877906944.html  也是第二关的入口

 

以上并不涉及太多编程的东西,只是我当时不断尝试并找到答案的过程,仅供参考。

 

posted @ 2017-07-12 12:48  羽化凡  阅读(160)  评论(0编辑  收藏  举报