摘要: https://www.zhihu.com/question/42768955/answer/94798842 阅读全文
posted @ 2019-11-04 17:03 hank-li 阅读(4459) 评论(0) 推荐(1) 编辑
摘要: ``` list1 = ['122','2333','3444',' ','422',' ',' ','54',' '] list1=[x.strip() for x in list1 if x.strip() != ''] ``` 阅读全文
posted @ 2019-11-04 10:00 hank-li 阅读(11213) 评论(0) 推荐(0) 编辑