会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
harstanber
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
Python
locust参数化
摘要: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)
python寻找文件
摘要:找到当前路径所有文件夹中的某一文件# 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
阅读(479)
评论(0)
推荐(0)
python解压zip
摘要:# 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
阅读(522)
评论(0)
推荐(0)
公告