
Lv.1
功成身退
在 【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复
用了Microsoft Edge(谷歌内核啊,别误会),快快快卡爆了
结果一个小时后,卡退了,没保存,好方...
2020-10-09T20:05:41 点赞:0
在 【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复
尊敬的技术喵阁下:
又出bug了,快来修:
(所有浏览器在注释过长时都会发生)

能不能改一下偏移的情况
2021-02-12T13:00:55 点赞:0
在 【海龟编辑器】意见反馈信箱(长期有效) 中回复
import 喵tplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.image import MIMEImage #设置登录及服务器信息 mail_host = '喵tp.163.com' mail_user = '159*****02' mail_pass = '7******x' sender = '159*****02@163.com' receivers = ['7******0@qq.com'] #设置eamil信息 #添加一个MIMEmultipart类,处理正文及附件 message = MIMEMultipart() message['From'] = sender message['To'] = receivers[0] message['Subject'] = 'title' #推荐使用html格式的正文内容,这样比较灵活,可以附加图片地址,调整格式等 with open('abc.html','r') as f: content = f.read() #设置html格式参数 part1 = MIMEText(content,'html','utf-8') #添加一个txt文本附件 with open('abc.txt','r')as h: content2 = h.read() #设置txt参数 part2 = MIMEText(content2,'plain','utf-8') #附件设置内容类型,方便起见,设置为二进制流 part2['Content-Type'] = 'application/octet-stream' #设置附件头,添加文件名 part2['Content-Disposition'] = 'attachment;filename="abc.txt"' #添加照片附件 with open('1.png','rb')as fp: picture = MIMEImage(fp.read()) #与txt文件设置相似 picture['Content-Type'] = 'application/octet-stream' picture['Content-Disposition'] = 'attachment;filename="1.png"' #将内容附加到邮件主体中 message.attach(part1) message.attach(part2) message.attach(picture) #登录并发送 try: 喵tpObj = 喵tplib.SMTP() 喵tpObj.connect(mail_host,25) 喵tpObj.login(mail_user,mail_pass) 喵tpObj.sendmail( sender,receivers,message.as_string()) print('success') 喵tpObj.quit() except 喵tplib.SMTPException as e: print('error',e)
2021-02-23T14:34:24 点赞:0
在 【限时福利】吉吉喵含泪送限量编程猫皮肤! 中回复
吉吉喵->imgsrc="http://img.t喵t4/appstyle/expression/ext/normal/98/yhh_thumb.gif"alt="emotion_右哼哼"imgsrc="http://img.t喵t4/appstyle/expression/ext/normal/6d/zhh_thumb.gif"alt="emotion_左哼哼"<-魔术喵
2021-10-02T09:28:50 点赞:0
在 intelcpu的故事 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"
2022-05-19T19:49:07 点赞:0