![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 63
iteye_331
这个作者很懒,什么都没留下…
展开
-
python 字典取交集
python 字典取交集方法:>>> a{'1': ['a', 'b'], '2': ['d', 'e']}>>> b{'1': ['a', 'f'], '3': ['d', 'e']}>>> dict([(i,b[i]) for i in filter(a.has_key,b.keys())]){...2012-02-02 23:45:58 · 1367 阅读 · 0 评论 -
File Locking Using a Cross-Platform API(python 跨平台文件锁实现)
File Locking Using a Cross-Platform API获得平台无关的文件锁Credit: Jonathan Feinberg, John Nielsen 转自:http://blog.csdn.net/fdayok/article/details/5263061 问题 Problem You need to lock files in a ...原创 2012-04-16 09:59:34 · 111 阅读 · 0 评论 -
portalocker - Cross-platform (posix/nt) API for flock-style file locking
转自:http://code.activestate.com/recipes/65203/ portalocker - Cross-platform (posix/nt) API for flock-style file locking. (Python recipe) ## {{{ http://code.activestate.com/recipes/65203/ (r7...原创 2012-04-16 16:21:55 · 811 阅读 · 0 评论