Discuss / Python / 惭愧,开始没搞懂isinstance做完判断的应用

惭愧,开始没搞懂isinstance做完判断的应用

Topic source

singcao

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

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


  • 1

Reply