摘要: 又是一道迭代的题,没做好。 看了答案才试着写出来。 我一定要加油啊,为了尽快摆脱现在讨厌的生活! 原题链接:http://www.runoob.com/python/python-exercise-example27.html 题目:利用递归函数调用方式,将所输入的5个字符,以相反顺序打印出来。 我 阅读全文
posted @ 2018-06-15 10:15 Drifter_y 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 原题链接:http://www.runoob.com/python/python-exercise-example26.html 题目:利用递归方法求5!。 是25题递归方式的简化版所以很容易。 我的代码: 阅读全文
posted @ 2018-06-15 09:13 Drifter_y 阅读(453) 评论(0) 推荐(0) 编辑