Discuss / Python / 作业一记

作业一记

Topic source
在此插入代码

-- coding: utf-8 --

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

L2 = [L.lower() for L in L1 if isinstance(L, str)] print(L2)


  • 1

Reply