九州体育网 - 十年信誉网站

关于作者

Discuss / Python / 加油啊

加油啊

Topic source

嘻嘻哈哈12345666

#1 Created at ...

L = ['Hello', 'World', 'IBM', 'Apple',18,None] [s.lower() for s in L if isinstance(s, str)] ['hello', 'world', 'ibm', 'apple']


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.