摘要:
D:\szh\noses文件夹下有子文件夹和文件 with tarfile.open('E:\\szh.tar', "w") as tar: tar.add('D:\\szh\\noses')) 压缩包第一层文件夹为szh,下面才是noses with tarfile.open('E:\\szh.t 阅读全文
摘要:
conn = MongoClient('127.0.0.1', 27017)db = conn.diffcollection = db['test1']result = collection.find({"b":"a"})if result.count() == 0: print 'no data' 阅读全文