# -*- coding: utf-8 -*- 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
夕桐