def reverse(ListInput):
RevList=[]
for i in range (len(ListInput)):
RevList.append(ListInput.pop())
return RevList

python列表反转函数-LMLPHP

python列表反转函数-LMLPHP

05-06 13:43