python 将一个字符list的列表扁平化成了一个list
摘要:a=[['app','ap','ade'],['er'],['bcc','brt']] 将这么一个list 转换成 a2=['app','ap','ade','er','bcc','brt'] 做法:a2=[x for tup in a for x in tup]
阅读全文
posted @ 2018-11-27 16:58
posted @ 2018-11-27 16:58
posted @ 2018-11-22 14:21
posted @ 2018-11-19 10:24
posted @ 2018-11-19 09:54