摘要: import os,shutil def copy_search_file(srcDir, desDir): ls = os.listdir(srcDir) for line in ls: filePath = os.path.join(srcDir, line) if os.path.isfile(filePath): ... 阅读全文
posted @ 2016-06-08 16:15 lasclocker 阅读(6452) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #encoding: utf-8 import datetime def dateDiffInHours(t1, t2): td = t2 - t1 return td.days * 24 + td.seconds/3600 + 1 if __name__ == '__main__': t1 ... 阅读全文
posted @ 2016-06-08 10:18 lasclocker 阅读(5604) 评论(0) 推荐(0) 编辑