('Content-Disposition', 'attachment', filename='file.txt') # 将附件添加到邮件中 msg.attach(part) # 发送邮件 server = smtplib.SMTP('smtp.example.com', 587) server.starttls() server.login('your_email@example.com', 'your_password') server.sendmail('your_email@example.com', ['recipient_...
cpu_check.py", line 51, in <module> File "cpu_check.py", line 35, in scancores server = smtplib.SMTP('smtp.gmail.com:587') NameError: global name'smtplib' is not 浏览1提问于2016-06-13得票数 0 3回答 basic function not -> 'name 'happyBirthdayEmily‘is not defined’ 、 happyBi...
作者:uniquewang,腾讯安全平台后台开发工程师 福生于微,积微成著,一行代码的精心调试,一条指令的细...