1、导入所需要的模块 import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage f ...
分类:
编程语言 时间:
2019-12-11 19:12:40
阅读次数:
98
#给163发送邮件import smtplibfrom email.mime.text import MIMETextnam='15527721040@163.com'send='15527721040@163.com'receive='371933505@qq.com'pw = '37193350 ...
分类:
其他好文 时间:
2019-12-09 21:14:01
阅读次数:
110
打开DWG时,图纸中使用的shx字体文件在本地电脑不能找到时,控件会默认使用缺省的字体txt.shx,hztxt.shx来代替,这样一般文字不会显示成问号,但是如果文字中的特殊符号在默认字体也一样找不到,这时就会显示成问号。 使用缺省的字体的代替的文字样式,可能会出现文字显示大小,样子不一至的效果。 ...
分类:
其他好文 时间:
2019-12-09 10:26:43
阅读次数:
108
一、HTML格式怎么发送右键 1.准备HTML代码作为内容 2.把邮件的subtype设置为html 3.发送 4.举个例子:自己发给自己一个HTML格式的文件 from email.mime.text import MIMEText ? main_content = """ <!DOCTYPE h ...
分类:
编程语言 时间:
2019-12-09 01:47:23
阅读次数:
189
import smtplibfrom email.mime.text import MIMETextfrom email.utils import formataddr#定义发送的内容:msg = MIMEText("你好","plain","utf-8")#定义邮件标题:msg['subject' ...
分类:
编程语言 时间:
2019-12-07 12:50:46
阅读次数:
75
{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [] }, { "cell_type": "code", " ...
分类:
其他好文 时间:
2019-12-06 23:25:15
阅读次数:
95
https://www.liaoxuefeng.com/wiki/1022910821149312/1023022494381696 //引入 https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/Input/file //细节讲解文档 ...
分类:
Web程序 时间:
2019-12-01 20:45:10
阅读次数:
118
以hostname区分不同的网站,一个server{ }配置块就是一个网站。 # 省略一些配置...... http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr ...
分类:
其他好文 时间:
2019-11-30 00:09:43
阅读次数:
84
因为Nginx默认从conf目录搜索https证书,所以https证书一般存放到conf目录下。 #省略一些配置......http { include mime.types; default_type application/octet-stream; sendfile on; keepalive ...
分类:
Web程序 时间:
2019-11-29 23:43:23
阅读次数:
132
1 前言 浏览器报错误(chrome和firefox都会):because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checkin... 2 解决方案 3 小结 同时也会 ...
分类:
Web程序 时间:
2019-11-27 12:18:37
阅读次数:
185