L = ['Hello', 'World', 'Apple',18,None,19] a=[s.lower() for s in L if isinstance(s,str)] print(a)
Sign in to make a reply
青人红衣
L = ['Hello', 'World', 'Apple',18,None,19] a=[s.lower() for s in L if isinstance(s,str)] print(a)