📅  最后修改于: 2022-03-11 14:46:05.455000             🧑  作者: Mango
def add_last_item_at_first_index(arr):
temp = arr[len(arr) - 1]
i = 0
while i < len(arr):
temp1 = arr[i]
arr[i] = temp
temp = temp1
i = i + 1
return arr