摘要:
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
阅读(6559)
评论(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
阅读(5642)
评论(0)
推荐(0)
浙公网安备 33010602011771号