def a2(arg): if len(arg) > 2: del arg[2:] li = [12,13,14,15] a2(li) print(li) 转载于:https://www.cnblogs.com/zgyc/p/6229722.html