摘要: (1)过滤掉长度小于3的字符串列表,并将剩下的转换成大写字母 lst = ["alex", 'db', '2b', "wusir", 'sb', "taibai","nezha", "ritian"] print([ el.upper() for el in lst if len(el) >= 3] 阅读全文
posted @ 2018-11-02 15:44 DanielYang11 阅读(372) 评论(0) 推荐(0) 编辑