Discuss / Python / 练习

练习

Topic source

阿财

#1 Created at ... [Delete] [Delete and Lock User]
L = ['Hello', 'World', 18, 'Apple', None]
L2=[x.lower() for x in L if isinstance(x ,str)]
print(L2)

  • 1

Reply