arr = [1,2,3,4,5,6,7,8,None]arr = [elem for elem in arr if elem != None] 转载于:https://www.cnblogs.com/daas/p/6140243.html