AMR11E - Distinct Primes
no tags
Arithmancy is Draco Malfoy's favorite subject, but what spoils it for him is that Hermione Granger is in his class, and she is better than him at it. ...
分类:
其他好文 时间:
2015-08-20 10:33:00
阅读次数:
176
Subject.javapublic interface Subject { public void registerObserver(Observer o); public void removeObserver(Observer o); public void notifyObservers();}
Observer.javapublic interface Observer...
分类:
其他好文 时间:
2015-08-20 01:35:34
阅读次数:
143
<?php
$pattern=‘/[0-9]/‘;???????????????????????????????????????????//定义匹配的模式
$subject=‘weuyr3ui76as83s0ck9‘;?????????????????//定...
分类:
Web程序 时间:
2015-08-19 23:51:21
阅读次数:
325
Distinct Primes
Arithmancy is Draco Malfoy's favorite subject, but what spoils it for him is that Hermione Granger is in his class, and she is better than him at it. Prime numbers are of mystical im...
分类:
其他好文 时间:
2015-08-19 14:52:58
阅读次数:
109
importsmtplib
fromemail.mime.textimportMIMEText
mailto_list=["xxx@xxx.com","xxx@xxx.com"]
mail_host="smtp.qq.com"#设置服务器
mail_user="xxx@qq.com"#用户名
mail_pass="xxx"#密码
defsend_mail(mailto_list,subject,content):#mailto_list:收件人;subject:主题;c..
分类:
Web程序 时间:
2015-08-19 02:05:45
阅读次数:
708
豆瓣电影主页上爬到了如下url: href=""http://movie.douban.com/subject/26289144/?from=showing"" href=""http://movie.douban.com/subject/26289144/?from=showing"" href=...
分类:
Web程序 时间:
2015-08-18 15:49:35
阅读次数:
561
DescriptionThe world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them. He is very...
分类:
其他好文 时间:
2015-08-16 21:14:56
阅读次数:
116
最大上升子序列Description The world financial crisis is quite a subject. Some people are more relaxed while others are quite anxious. John is one of them....
分类:
其他好文 时间:
2015-08-16 21:09:45
阅读次数:
103
E -LISTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionThe world financial crisis is quite a subject. Some peo...
分类:
其他好文 时间:
2015-08-16 21:07:48
阅读次数:
138
模式定义:简单来讲,观察者模式定义了一个一对多的依赖关系,让一个或多个观察者对象监控一个主题对象。这样一个主题对象在状态上的变化能够通知所有的依赖于此对象的所有观察者对象,使这些观察者对象能够更新自身。
模式中涉及的四个角色:
1、 Subject主题角色(被观察的对象接口)
1.1被观察者的统一接口;
1.2每个Subject可以有多个Observer对象的引用
采用Web...
分类:
其他好文 时间:
2015-08-15 23:08:26
阅读次数:
155