[英]How to decode an encoded email address with Python?
解码以下字符串的最佳方法是什么? 我有几封正在编码的电子邮件。 示例编码 email 如下。
encoded_string = "Info@doverhouseresort.com"
decoded_string = "Info@doverhouseresort.com"
只需使用模块 html
import html
encoded_string = "Info@doverhouseresort.com"
decoded_string = html.unescape(encoded_string)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.