Python:电子邮件地址

时间:2011-10-04 21:21:20

标签: python email

Python 3

# -- coding: utf-8 --
email = input ( 'Email: ' )
print email # oÓ.öŐ §'"+!%/=()@uÚ.üŰ §'"+!%/=().com

我想:

print email # oo.oo@uu.uu.com

  • 拉丁文1( ISO-8859-1 )字符,符号( @ )和点()。
  • Lowletters。
  • 删除(白色)空间特殊字符

对不起,我会说一点英语。

谢谢!

1 个答案:

答案 0 :(得分:0)

您正在寻找的是string.translate()功能。

请参阅:Python Docs - String

另请参阅:This tutorial

相关问题