一个关于MIME的问题msg = MIMEText(fp.read())msg['Subject'] = 'The contents of %s' % textfilemsg['From'] = memsg['To'] = youmsg的类型是instance请问下为啥可以这样写 msg['subject'] msg难道是列表?[解决办法]看看手册The Python Language Reference 3.4节,了解一下类的一些特性...[解决办法]字典也可以的