您可能更喜欢@PascalvKooten提到的方式,像这样创建MIMEImage实例:. msgImage = MIMEImage(fp.read(), filename='filename'). 就像魅力一样起作用.
確定! 回上一頁