
python
iteye_11901
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
diff 更新 检查脚本
工作中常需要对某些数据文件进行更新检查, 特写了个小脚本来完成. [code="python"] #!/usr/bin/env python # encoding: utf-8 """ @filename : diff_check.py @Author : idup2x@gmail.com """ import sys, getopt _a_nums ...2011-01-24 18:06:04 · 193 阅读 · 0 评论 -
python: 一个线程安全的单例类
称之为单例类, 其实也是照搬Java/C++等强类型语言的概念,在python里实现起来总有怪怪的味道. 关乎设计模式,这里有往篇文章,有时间研读一下: Design Patterns in Python [code="python"] #! /usr/bin/env python # -*- coding: utf-8 -*- """ $filename : Logger...2011-01-26 01:31:07 · 306 阅读 · 0 评论