This repository has been archived by the owner on Apr 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
658 changed files
with
124,514 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module main</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
</head><body bgcolor="#f0f0f8"> | ||
|
||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | ||
<tr bgcolor="#7799ee"> | ||
<td valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>main</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:f%3A%5Ccode%5Cpython%5Cschool_notice%5Csrc%5Cmain.py">f:\code\python\school_notice\src\main.py</a></font></td></tr></table> | ||
<p><tt>Created on Mar 8, 2018<br> | ||
<br> | ||
@author: QiZhao<br> | ||
@license: GNU GPLv3<br> | ||
@version: 0.1.0</tt></p> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#aa55cc"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> | ||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> | ||
</td><td width="25%" valign=top><a href="spider.html">spider</a><br> | ||
</td><td width="25%" valign=top><a href="time.html">time</a><br> | ||
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#eeaa77"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> | ||
<td width="100%"><dl><dt><a name="-Init"><strong>Init</strong></a>()</dt><dd><tt>首次使用时,程序初始化</tt></dd></dl> | ||
<dl><dt><a name="-main"><strong>main</strong></a>()</dt></dl> | ||
</td></tr></table> | ||
</body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
<html><head><title>Python: module send</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
</head><body bgcolor="#f0f0f8"> | ||
|
||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> | ||
<tr bgcolor="#7799ee"> | ||
<td valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>send</strong></big></big></font></td | ||
><td align=right valign=bottom | ||
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:f%3A%5Ccode%5Cpython%5Cschool_notice%5Csrc%5Csend.py">f:\code\python\school_notice\src\send.py</a></font></td></tr></table> | ||
<p><tt>Created on Mar 7, 2018<br> | ||
<br> | ||
@author: QiZhao<br> | ||
@license: GNU GPLv3<br> | ||
@version: 0.1.0</tt></p> | ||
<p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#aa55cc"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> | ||
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="smtplib.html">smtplib</a><br> | ||
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> | ||
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> | ||
<tr bgcolor="#eeaa77"> | ||
<td colspan=3 valign=bottom> <br> | ||
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> | ||
|
||
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> | ||
<td width="100%"><dl><dt><a name="-Send"><strong>Send</strong></a>(msgs, subject, send_number, to_addr_str, flag=1)</dt><dd><tt>向手机号码为send_number的人发送通知信息<br> | ||
向to_addr_str中的邮箱地址发送主题为subject的通知信息<br> | ||
支持是否写入日志记录的选择 <br> | ||
<br> | ||
Args:<br> | ||
msgs: 存储要发送的内容的列表,且该列表的每个元素为列表,<br> | ||
列表元素中的元素必须按照[标题,时间,链接]的顺序,例如:<br> | ||
[['关于xxx的通知','2017-03-10','<a href="http://xxxx.com'],['关于xxx的通知','2017-03-10','http://xxxx.com">http://xxxx.com'],['关于xxx的通知','2017-03-10','http://xxxx.com</a>']]<br> | ||
subject: 要发送的邮件主题<br> | ||
send_number: 短信接收者的手机号码<br> | ||
to_addr_str: 收件人的邮箱地址,多个邮箱地址之间应以','分割,类型为字符串<br> | ||
例如:'example@qq.com','example1@qq.com,example2@qq.com'<br> | ||
flag: 一个可选变量,用来决定是否在发送日志中记录此次发送信息,默认为1(记录)</tt></dd></dl> | ||
<dl><dt><a name="-Send_email"><strong>Send_email</strong></a>(txt, to_addr_str, subject)</dt><dd><tt> 向to_addr_str中的邮箱地址发送主题为subject,正文部分为txt的邮件<br> | ||
支持多人同时发送<br> | ||
Args:<br> | ||
txt: 要发送的邮件的正文部分,类型为字符串<br> | ||
to_add_str: 收件人的邮箱地址,多个邮箱地址之间应以','分割,类型为字符串<br> | ||
例如:'example@qq.com','example1@qq.com,example2@qq.com'<br> | ||
subject: 邮件主题<br> | ||
<br> | ||
Returns:<br> | ||
log_send_email: 经过处理的含收件人邮箱地址以及发送结果的日志信息,类型为字符串<br> | ||
例如:'example@qq.com 邮件发送成功!<br> | ||
'<br> | ||
'example@qq.com 邮件发送失败,请检查你的账号是否有效或网络是否良好!<br> | ||
'<br> | ||
'example1@qq.com,example2@qq.com 邮件发送成功!<br> | ||
'</tt></dd></dl> | ||
<dl><dt><a name="-Send_sms"><strong>Send_sms</strong></a>(send_number, msg)</dt><dd><tt> 向手机号码为send_number的人发送内容为msg的短信<br> | ||
<br> | ||
Args:<br> | ||
send_number: 短信接收者的手机号码<br> | ||
msg: 要发送的文本内容,类型为字符串<br> | ||
<br> | ||
Returns:<br> | ||
经过处理的含短信接收者手机号码以及发送结果的日志信息,类型为字符串<br> | ||
例如:<br> | ||
'+8615012345678 短信已经发送<br> | ||
'<br> | ||
'+8615012345678 短信发送失败,请检查你的账号是否有效或网络是否良好!<br> | ||
'<br> | ||
<br> | ||
send_number应已经在twilio上验证过<br> | ||
msg中不能包含敏感词,否则短信会被运营商拦截</tt></dd></dl> | ||
</td></tr></table> | ||
</body></html> |
Oops, something went wrong.