📜  python 从邮件中提取名称 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.507000             🧑  作者: Mango

代码示例1
mail = "studentvn.studentfn@company.com"
name = mail.split("@")[0].replace("."," ")
# splits it at the @, grab the first part and replace the "." with a space
# you get "studentvn studentfn"