赞
踩
arr=[1,2,3,4]def where(arr:list,fun): for a in arr[:]: if not fun(a): arr.remove(a) return arrprint(where(arr,lambda x: True if x>2 else False))