L = ['Hello', 'World', 18, 'Apple', None] m = [s.lower() for s in L if isinstance(s,str)] print(m)
Sign in to make a reply
Young先森森
L = ['Hello', 'World', 18, 'Apple', None] m = [s.lower() for s in L if isinstance(s,str)] print(m)