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