邮件发送代码kaijitongzhi.py: import smtplib import socket from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText # 获取本机计算机名称 hostname = socket.gethostname() # 获取本机ip ip = socket.gethostbyname(hostname) #设...