Discuss / Python / 交作业啦!

交作业啦!

Topic source

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

Curious梁焰

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

请问为什么可以直接在遍历L1后面直接加判断,这是什么语法?

咱俩是一样的


  • 1

Reply