Discuss / Python / isinstance还蛮好用的。。。。

isinstance还蛮好用的。。。。

Topic source

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


  • 1

Reply