我从CSV文件中提取一些电子邮件,然后将其保存到另一个CSV文件。将列表拆分为单个条目
电子邮件变量应该是这种格式:
email = ['[email protected]'], ['[email protected]'], ['[email protected]']
但在某些情况下,它也将被退回:
email = ['[email protected]', '[email protected]'], ['[email protected]']
在某些行找到2封电子邮件,所以这是当它是像这样呈现。
什么将是一种有效的方式来改变它?
的可能重复[如何以最佳方式把一个多维列表到在Python项目的一个列表?(http://stackoverflow.com/questions/6679228/how-to-optimally-turn-a-multidimentional-list -INTO-A-单列表项功能于pyth的) – senderle