📅  最后修改于: 2022-03-11 14:45:57.383000             🧑  作者: Mango
# reversing a sring using recursion
def reverse_recursion(s):
if len(s) == 0:
return s
else:
return reverse_recursion(s[1:]) + s[0]