摘要: 原题链接:http://www.runoob.com/python/python-exercise-example25.html 题目:求1+2!+3!+...+20!的和。 我的代码: 用了两个循环,其实不好。看到用map的,打算重写一下。 第二天,看到了用两个递归的,学写了一下: 递归就是 有一 阅读全文
posted @ 2018-06-14 10:15 Drifter_y 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 因为过生日,好几天没做题了,有点松懈。 我要更加加油啦~为了打败现在每天都厌恶的生活! 原题链接:http://www.runoob.com/python/python-exercise-example24.html 题目:有一分数序列:2/1,3/2,5/3,8/5,13/8,21/13...求出 阅读全文
posted @ 2018-06-14 09:38 Drifter_y 阅读(536) 评论(0) 推荐(0) 编辑