from itertools import chain
a = (('test'),('test1'),('test2'))
b = list(chain.from_iterable(a))
输出:
['tets','test1','test2']
from itertools import chain
a = (('test'),('test1'),('test2'))
b = list(chain.from_iterable(a))
输出:
['tets','test1','test2']