最近发表的评论
查看半瓶墨水所参与的评论列表
|
最新收到的留言
-
8天前,
小楼秋雨评论
导出邮箱里的联系人:支持Gmail,126,网易,搜狐,Hotmail,新浪,雅虎,MSN:
抛抛我的砖头,写了个MSN联系人的获取脚本,不过要先安装msnp
有没有哪位兄弟有使用过pymsn的,有例子的借阅一下,先在此谢谢大家.
import msnp
import time
class MsnListener(msnp.SessionCallbacks):
def friend_list_updated(self, friend_list):
#print 'aaa', friend_list.lists
friends= friend_list.get_friends()
for friend in friends:
friend_id = friend.get_passport_id()
if friend_id not in friendlist:
friendlist.append(friend_id)
msn = msnp.Session(MsnListener())
msn.login('aaaa@hotmail.com', '123456')
msn.sync_friend_list()
global friendlist
friendlist=[]
for t in range(5):
msn.process()
time.sleep(1)
print 'friendlist' ,friendlist
-
12天前,
liuxin9023评论
抓取糗事百科前100页的Python脚本:
#糗事百科完美下载版
代码太长不给发
http://liuxin9023.blog.163.com/blog/static/7199890220081069829917/
-
17天前,
spellscroll评论
组合生成与数量计算(Combinaton generator and counter):
这里是一个非递归的python实现
http://fayaa.com/code/view/471/
-
18天前,
天空之城评论
华容道游戏所有开局全求解程序,最难开局138步(峰回路转):
我来运行试试看 :D
-
26天前,
spellscroll评论
组合生成与数量计算(Combinaton generator and counter):
一个bug
for v in CG(m-1):
TypeError: CG() takes exactly 2 arguments (1 given)
-
1个月前,
okdns评论
发芽网的全站都在用的css:
发芽网的界面这么难看,它的CSS有脸还展出来啊
-
1个月前,
liuxin9023评论
The Zen of Python, Python之禅:
Simple is better than complex.
简单比复杂好.
Complex is better than complicated.
复杂比难以理解好.
Now is better than never.
Although never is often better than *right* now.
虽然有些事情不理不睬可能会比过一会解决要好
但最好是现在就解决
Namespaces are one honking great idea -- let's do more of those!
命名空间是一个很了不起的想法,让我们多多使用吧
-
1个月前,
vvoody评论
Python - 人性化的时间(比如:两分钟以前):
@5: timedelta 对象 2.x 就有啊,详见 library reference 5.1.2 节。
-
1个月前,
liuxin9023评论
Python - 人性化的时间(比如:两分钟以前):
sorry,这个代码在python 3000里就不能用了.
datetime.now()在python3000里不存在.
另外python3000里多加了一个timedelta对象,可以直接对两个时间差进行运算
-
1个月前,
vilinov评论
筛法生成质数(素数)的生成器:
还是用筛法比较快
查看用户给半瓶墨水的留言列表
|