python 发送邮件,附件中文命名,怎么破

2025-05-15 04:40:01
推荐回答(1个)
回答1:

对中文进行url编码。
from urllib import urlencode

urlencode('中文文件名')