常用操作

 

1. 去除list空元素

list(filter(lambda x: x, "a;b;c".split(';')))

 

posted @ 2021-01-19 17:01  汪丛兴  阅读(44)  评论(0编辑  收藏  举报