Discuss / Python / 作业

作业

Topic source

燕喜泥润

#1 Created at ... [Delete] [Delete and Lock User]

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

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


  • 1

Reply