Discuss / Python / 交作业

交作业

Topic source

L = ['Hello', 'World', 18, 'Apple', None,'LSN'] L1=[s.lower() for s in L if isinstance(s,str) == True] print(L1)


  • 1

Reply