# 按照下面的输出的结果写一个列表的反转函数 reverse_list # reverse_list([1,2,3]) # ---->[3,2,1] # reverse_list([1,[2,3],4]) # ---->[4, [3, 2], 1] # reverse_list([1,[2,3],[],4]) # --->[4, [], [3, 2], 1] 我调试一步步实现实现的 def reverse_list(listPara=[]): resultList=[] for iterL in listPara: if isinstance
考考你python基础面试题
最新推荐文章于 2024-04-30 20:10:25 发布