摘要: from random import randintfrom random import uniformfrom locust import HttpLocust, TaskSet, taskfrom requestsCoinfit import coinfitParamPostclass Quer 阅读全文
posted @ 2018-08-03 16:34 harstanber 阅读(489) 评论(0) 推荐(0)
摘要: 找到当前路径所有文件夹中的某一文件# encoding=utf-8 import os import operator ''' 传入文件名,可以找到该路径下的所有同名文件,并将对应路径及文件写到list_fine_name表中 以二维数组形式存在,并返回 如找文件a.txt 则list_fine_name=[['C:\test','C:\test\a.txt'],['C:\test\abs','... 阅读全文
posted @ 2016-06-02 16:10 harstanber 阅读(478) 评论(0) 推荐(0)
摘要: # encoding=utf-8 import zipfile import os def unzip_file(zipfilename, unziptodir): if not os.path.exists(unziptodir): os.mkdir(unziptodir) zfobj = zipfile.ZipFile(zipfilename... 阅读全文
posted @ 2016-06-02 16:04 harstanber 阅读(518) 评论(0) 推荐(0)