在此插入代码
L1 = ['Hello', 'World', 18, 'Apple', None]
L2 = [L.lower() for L in L1 if isinstance(L, str)] print(L2)
Sign in to make a reply
意气风发day
-- coding: utf-8 --
L1 = ['Hello', 'World', 18, 'Apple', None]
L2 = [L.lower() for L in L1 if isinstance(L, str)] print(L2)