L1 = ['Hello', 'World', 18, 'Apple', None] print('结果为: L2 =',[s.lower() for s in L1 if isinstance(s, str) and s != None])
Sign in to make a reply
请叫我啊龙_
L1 = ['Hello', 'World', 18, 'Apple', None] print('结果为: L2 =',[s.lower() for s in L1 if isinstance(s, str) and s != None])