Discuss / Python / 交作业啦

交作业啦

Topic source

BillCode

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

练习

L2 = ['Hello', 'World', 18, 'Apple', None] L3 = [s.lower() for s in L2 if isinstance(s,str)] print(L3)


  • 1

Reply