摘要: 1. list_old = ['1 ','2 ','3'] list_new = [i.strip() for i in list_old] 等价于:list_new = []for i in list_old: list_new.append(i.strip()) 阅读全文
posted @ 2013-07-22 15:49 浪潮之巅123 阅读(183) 评论(0) 推荐(0) 编辑