我要拆分的電子郵件地址一長串成線,如電子郵件地址的一個長長的清單:如何分割使用Python 3.2.2
[email protected]; [email protected]; test03#testing1.com; [email protected],
我想他們分成行:
[email protected] (carriage return)
[email protected] (carriage return)
test03#testing1.com (carriage return)
[email protected]
任何人都可以幫忙嗎?謝謝。
謝謝你這麼多。我學會了。 – user1319102 2012-04-07 14:00:36
查看鏈接,文檔解釋了許多重要的功能。順便說一句,如果這個(或任何其他)答案解決了你的問題,請隨時[accept](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work)(並可能upvote)它。謝謝! – phihag 2012-04-07 14:21:23
你必須小心。 ;,可以是電子郵件地址的本地部分(@之前的所有內容)的一部分。所以簡單的分裂並不是防彈的。 – esskar 2012-04-25 10:01:31