Discuss / Python / 练习答案

练习答案

Topic source

L1 = ['Hello', 'World', 18, 'Apple', None]

L2 = [x.lower() for x in L1 if isinstance(x,str) is True]

print(L2)


  • 1

Reply