新手刚刚开始学习python,如果有写错或写的不好的地方,请大家多多指教!在python中输出当前系统importsysprint(sys.platform)输出当前在那个目录importosos.getcwd()输出一个变量有多少位s=‘spam‘len(s)替换变量的值s=‘z‘+s[1:]查找变量内的值s.find(‘pa‘)#找到会返回1,找不到..
分类:
编程语言 时间:
2015-05-18 21:00:45
阅读次数:
120
题意: 按照给定的条件判断给出的邮箱地址是否合法。Solution: 模拟。需要注意输入中可能包含空格。 空串不能作为symbol,因此prefix也不能包含连续和出现在首尾的'.'#include #include #include using namespace std;int n;st...
分类:
其他好文 时间:
2015-05-07 21:53:48
阅读次数:
101
http://lingxiankong.github.io/blog/2013/12/23/python-setup/打包用于离线安装:pip bundle -r requirements.txt spam.pybundle #A环境打包pip install spam.pybundle #B环境离...
分类:
编程语言 时间:
2015-04-28 20:26:41
阅读次数:
225
帝国cms安装相对比较简单,一路next,一般从网上下载的系统都会带一些数据,恢复备份数据后,清除缓存,更新数据,一个copy版的网站就出来了。但是为了se的友好需要改动很多地方,不然很容易被认为是spam站点。 为了提升用户体验留住访客,一个会员系统很是需要。ytkah就整了一个简易的。但一...
分类:
其他好文 时间:
2015-04-26 18:17:50
阅读次数:
131
1.创建空字典>>> dic = {}
>>> type(dic)
2.直接赋值创建>>> dic = {'spam':1, 'egg':2, 'bar':3}
>>> dic
{'bar': 3, 'egg': 2, 'spam': 1}3.通过关键字dict和关键字参数创建>>> dic = dict(spam = 1, egg = 2, bar =3)
>>> dic...
分类:
编程语言 时间:
2015-04-22 09:43:18
阅读次数:
119
1. Applications and problemsApplicationsText or document classification, e.g., spam detection;Natural language processing, e.g., morphological analysi...
分类:
其他好文 时间:
2015-04-12 20:39:48
阅读次数:
150
今天上班无聊,想起上次有个同学提到用telnet发邮件,于是想试一下。最后实践成功,在此做个总结。
首先,cmd输入telnet打开回话:
以下红色字体为命令。
1、open smtp.163.com 25,连接smtp服务,成功显示:
220 163.com Anti-spam GT for Coremail System (163com[20141201])
2、helo loc...
分类:
Web程序 时间:
2015-03-18 18:14:24
阅读次数:
191
endmail是Linux下优秀的邮件系统。在不做任何设定的情况下,sendmail发出邮件的邮箱源地址形如userid@localhost.localdo,这种地址几乎会被所有的邮箱认定为SPAM(垃圾邮件)或直接拒收。1、 Sendmail安装在CentOS下,sendmail一般默认是随操作系...
分类:
其他好文 时间:
2015-03-16 12:23:38
阅读次数:
155
1567. SMS-spam
Time limit: 1.0 second
Memory limit: 64 MB
Petr, a student, decided to start his own business. He offers SMS advertising services to the business owners renting offices in ...
分类:
其他好文 时间:
2015-03-07 11:36:09
阅读次数:
242
网上有很多spamadvisory数据库,例如spamhaus之类的。例如,要查询IP1.2.3.4是否被ahbl.org列入黑名单,可以用下列命令nslookup4.3.2.1.dnsbl.ahbl.org如果返还的结果是Non-existentdomain,说明没有问题如果返还的结果是127.0.0.x,说明被列入了黑名单,x有可以能是1-255的数..
分类:
其他好文 时间:
2015-02-25 23:53:26
阅读次数:
219