python
hejian1106
这个作者很懒,什么都没留下…
展开
-
python文件拷贝
# -*- coding: cp932 -*-import sys, shutil, os, string targetDir = r"C:\Users\2172980000702\Desktop\SI\src"sourceDir = os.getcwd()print(sourceDir)f=open("commot.txt")line = f.readli原创 2015-06-01 19:41:07 · 692 阅读 · 0 评论 -
python 压缩
import sysimport osimport getoptimport timeimport zipfilefrom datetime import datetimedef Usage(): print 'PyTest.py usage:' print '-h,--help: print help message.' print原创 2016-03-08 20:15:24 · 481 阅读 · 0 评论