Discuss / Python / 作业

作业

Topic source

lyingaloneiii

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

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

丶筱丨涵

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

isinstance(s, str) 如果满足条件,结果就是true,所以不需要判断了

lyingaloneiii

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

谢谢提醒


  • 1

Reply