L = ['Hello', 'World', 18, 'Apple', None,'LSN'] L1=[s.lower() for s in L if isinstance(s,str) == True] print(L1)
Sign in to make a reply
谁知道叫点啥
L = ['Hello', 'World', 18, 'Apple', None,'LSN'] L1=[s.lower() for s in L if isinstance(s,str) == True] print(L1)