def revlist(lst): if len(lst) == 1: return lst else: return lst[(len(lst) - 1)
我已经到了这一点,但我不知道接下来该做什么.我正在为我的考试练习递归.如果有人可以提供帮助,我会感激不尽.
python recursion list python-2.7 python-3.x
list ×1
python ×1
python-2.7 ×1
python-3.x ×1
recursion ×1