将一个假值 dataframe 放入html,最后send email报 connection.sendmail(mail_from,msg['To'].split(','),msg.as_string())
AttributeError: 'NoneType' object has no attribute 'split'
你打印下msg['To']看看内容,应该是个空列表