Discuss / Python / 作业

作业

Topic source

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

为什么 if isinstance(s,str)可以省略判断结果

惠民中心

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

默认为True


  • 1

Reply