代码 import smtplib from email.mime.text import MIMEText from email.header import Header import os def send_email(): sender = 'tianxiaodema@163.com' # 发 ...
分类:
其他好文 时间:
2020-02-28 11:42:04
阅读次数:
51
本篇介绍SeMF(残源 / SecurityManageFramwork)的安装和使用。 ...
分类:
其他好文 时间:
2020-02-27 16:01:16
阅读次数:
347
git config user .name tom_pro git config user .email goodMorning_pro@atguigu.com #查看项目级别设置签名信息 cat .git /config (.git 和/之间没有空格) #查看系统级别设置签名信息 跳转到项目+文件 ...
分类:
其他好文 时间:
2020-02-27 11:34:00
阅读次数:
64
1、修改 application 中的 common.php 文件 use PHPMailer\PHPMailer\PHPMailer; function email($mailto, $subject, $content) { // 实列化PHPMailer,同时传递true表示启用异常机制 $m ...
分类:
Web程序 时间:
2020-02-26 18:49:14
阅读次数:
78
1.首先打开Git Bash设置名字和邮箱: git config --global user.name "你的名字" git config --global user.email“你的邮箱" 2.删除.SSH文件下的known_hosts(.SSH在C:\Users\Windows用户名目录下) ...
分类:
数据库 时间:
2020-02-25 12:52:13
阅读次数:
103
注意:仓库只有管理员建的你才有权限上传,不然自己建的也没用,没权限上传 1、远程仓库路径查询 git remote -v 2、添加远程仓库 git remote add origin <你的项目地址> //注:项目地址形式为:https://gitee.com/xxx/xxx.git或者 git@g ...
分类:
其他好文 时间:
2020-02-24 18:36:40
阅读次数:
75
git config --global user.name '用户名' git config --global user.email '邮箱' git clone '仓库地址' git add 文件名 git commit -m '提交信息' git push 推送至github git pull ...
分类:
其他好文 时间:
2020-02-23 22:36:10
阅读次数:
51
最近项目里,写了一个通知服务,具备处理短信、电邮、站内信的能力。但我做多了一点,就是可以通过配置选择它的能力,比如只具备处理短信或者具备点油、站内信的能力。 我画了一个简单的图 图中的 Dispatcher 是一个Message的中转器,它负责投递给最终的 SMS 、 Email 、 Website ...
分类:
其他好文 时间:
2020-02-23 20:36:41
阅读次数:
74
用正则切分字符串输出 ['info','xiaoZhang','33','shandong']、s="info:xiaoZhang33shandong", import re s="info:xiaoZhang 33 shandong" res = re.split(r":| ", s) # |表示 ...
分类:
编程语言 时间:
2020-02-22 13:47:05
阅读次数:
409
import smtplibfrom smtplib import SMTP_SSLfrom email.mime.text import MIMETextfrom email.mime.multipart import MIMEMultipartfrom email.header import H ...
分类:
Web程序 时间:
2020-02-21 22:34:18
阅读次数:
94