ZeroKore
ZeroKore
全部文章
分类
DataBase(2)
JMeter(7)
Linux&shell(4)
TrainCode(12)
大数据系列(1)
性能测试(1)
未归档(3)
题解(8)
归档
标签
去牛客网
登录
/
注册
Exploring Blog
构建测试知识体系
TA的专栏
1篇文章
0人订阅
性能测试
1篇文章
542人学习
全部文章
(共14篇)
python脚本训练及答案
''' 1.题目描述: 已知 a的值为”hello”,b的值为”world”,如何交换a和b的值? 得到a的值为”world”,b的值为”hello” ''' a = "hello" b = "world" def exchange(a,b): tm...
Python
2021-04-12
0
728
计算程序运行时间
import time begin=time.time() for a in range(0,1000): print(a) end=time.time() print(end-begin)##0.002992868423461914
Python
2020-05-16
0
373
python-操作kafka
1.模拟生产者模块:KafkaProducer两个重要的方法:a.设置kafka地址:producer=KafkaProducer(bootstrap_servers='xxx.xxx.xxx.xxx:8086')注意:可以逗号分隔,放多个地址b.设置主题和发送消息producer.send('to...
Python
2020-04-13
0
415
20200405_Demo 数据随机分组
需求描述:8个字母随机分成三组 import random #构造存储的数据结构 offices = [[],[],[]] names = ['A','B','C','D','E','F','G','H'] #循环遍历随机分配到三个列表 for name in names: index =...
Python
2020-04-05
0
396
python-数据类型转换
参考博客:https://blog.csdn.net/chehec2010/article/details/79853476
Python
2020-03-22
0
289
20191010_Demo Python 打印 *
https://www.cnblogs.com/qiuxirufeng/p/9650437.html全部是星星的情况 星星和空格结合的情况
Python
2019-10-10
0
413
20191005_Demo Python CSV
需求描述:未完成。使用csv模块,读取csv文件保存为json格式存储,并支持指定列读取 类:DictReader、DictWriter使用场景:用于区分表头和内容,读取结果生成一个dict参考blog:https://www.jianshu.com/p/038c2d6b0bac 例子:3.Dict...
Python
2019-10-05
0
436
Python函数
函数总结一、常规使用函数: 按参数类型: 无参函数 位置参数:区分传参顺序 关键字参数:不区分传参顺序 默认参数 可变参数:传入参数个数不确定 1.*agrs 传参 f(1,2,3) 输出数据格式:元组(1,2,3) 2.*kwagrs 传参key-value格式 f(a=1,b=2) 输...
Python
2019-09-29
0
448
python文件读写
用于学习复习使用,参考博客https://blog.csdn.net/xrinosvip/article/details/82019844 读写文件场景: 对于普通txt文件 with open('data.txt',"r") as fr: fr.read() #一次读...
Python
2019-09-23
0
489
20190922_Demo Python字符串个数统计
需求如下: 实现思路:数据格式转换str.count(i) strs = "hello world hello sprark" list1=list(strs.split()) count_set = set(list1) #集合去重 for i in count_s...
Python
2019-09-22
0
349
首页
上一页
1
2
下一页
末页