python 列表中字符串几种操作

1.      [‘’,’’,’’,’’]转为[‘’]

‘’.join()方法

2.      [[],[],[]]转为[]

tmp_train = list(itertools.chain.from_iterable(tmp_train))

 

3.      Set 集合操作,&交集,|合集, 差集

猜你喜欢

转载自blog.csdn.net/nlite827109223/article/details/78162919