- 博客(25)
- 资源 (1)
- 收藏
- 关注
原创 RSA 加密
https://www.cnblogs.com/deliaries/p/13445277.htmlrsakey = RSA.importKey(public_key) # 加载公钥cipher = PKCS1_v1_5.new(rsakey)cipher_text = base64.b64encode(cipher.encrypt(message))# cipher_text = cipher.encrypt(message)print cipher_texta = cipher_text
2021-02-24 12:34:38
167
原创 python: no module named xxxx
https://www.cnblogs.com/dreamyu/p/7889959.html本机cmd下面运行报错,no module named xxxx,解决方法
2020-11-24 18:32:37
600
转载 git config user.email and user.name
Successfully created project ‘pinyougou-parent’ on GitHub, but initial commit failed: *** Please tell me who you are. Run git config --global user.email “you@example.com” git config --global user.name “Your Name” to set your account’s default identity. Omi
2020-11-20 10:34:22
2441
原创 python 子类调用父类函数时super()
子类调用父类函数时,用super(),super后面为啥要加一个括号?super是一个函数,函数的调用就需要加括号直接用super.eat()等于调用super这个对象的eat方法,而super对象不存在? 还不清楚待完善https://www.imooc.com/wenda/detail/506052 参考文章...
2020-09-23 23:24:02
408
转载 python join()函数的用法
函数:string.join() join(): 连接字符串数组。将字符串、元组、列表中的元素以指定的字符(分隔符)连接生成一个新的字符串一、函数说明1、join()函数语法: 'sep'.join(seq)参数说明sep:分隔符。可以为空seq:要连接的元素序列、字符串、元组、字典上面的语法即:以sep作为分隔符,将seq所有的元素合并成一个新的字符串返回值:返回一个以分隔符sep连接各个元素后生成的字符串2、os.path.join()函数语法: os.p...
2020-09-18 12:33:51
4787
原创 如何去掉输出字典,前边的dict_keys, 加list,‘:‘.join(list_name)把列表中每个成员用:连接成一个字符串
解决问题成功解决如何去掉输出字典,前边的dict_keysprint(person_info[0]..keys()) #输出dict_keys(['name', 'age', 'gender', 'hobby', 'motto'])person_info = [{"name":"yuze", "age": 18, "gender": "男", "hobby": "假正经", "motto": "I am yours"}, {"name":"dnise"...
2020-09-18 09:12:19
342
转载 Python 参数的拆包
什么是拆包拆包: 对于函数中的多个返回数据, 去掉元组, 列表 或者字典 直接获取里面数据的过程.怎么拆包1) 对列表进行拆包my_list = [1, 3.14, "hello", True]num, pi, my_str, my_bool = my_list# 或者num, pi, my_str, my_bool = [1, 3.14, "hello", True]2) 对元组进行拆包my_tuple = (1, 3.14, "hello", True)num, pi
2020-09-17 20:58:47
208
原创 软件测试设计方法
基于规格的黑盒测试:功能测试分类:1、数据---边界值、等价类、域测试、分类数、随机选择、统计选择2、组合---不组合、正交、pairwise、N-wise3、事件驱动---状态图4、流程---usecase5、逻辑--决策树、判定表、因果图6、全景--场景测试非功能测试:性能/能力可靠性可用性可维护性安全可测试性基于经验及其他:
2020-06-02 16:41:14
1047
转载 关于python的新特性函数注释(定义函数时使用“:”及“ ->”符号)
https://blog.youkuaiyun.com/finalkof1983/article/details/87943032def lengthOfLongestSubstring(self, s: str) -> int:这种定义方式完全没明白啥意思,于是经过一番查找,大体意思如下:这是python3的新特性,简单理解为s:str中的s还是你要传的形参这个没有变,str为该形参的注释...
2020-05-06 22:49:03
525
原创 data for exp
1. lisv2 测试 rateplan2. rtm 获取不同hotel下的房间的room的相似性,得出score,根据attribute去判断是否和得出的similarity score一致roomtypesimilarity, mostsimilarityroom, fullranking 排序3. prefill 抓取hotel获取room信息,训练抓取模型...
2020-04-24 17:13:19
186
原创 函数式编程
map()函数map(function, iterable) 对 iterable 中的每个元素,都运用 function这个函数,最后返回一个新的可遍历的集合l = [1, 2, 3, 4, 5]new_list = map(lambda x: x * 2, l) # [2, 4, 6, 8, 10]因为 map() 函数直接由 C 语言写的,运行时不需要通过Python 解释器...
2020-04-24 16:10:13
154
原创 数据分析资料
Pandashttps://www.jianshu.com/p/7ac36fafebeaseries: 一维dataframe: 二维Excelhttps://jingyan.baidu.com/article/b7001fe19422f50e7282dd0c.htmlDataFrame.set_index()https://pandas.pydata.org/p...
2020-04-24 16:09:27
255
转载 Selenium:利用select模块处理下拉框
from selenium.webdriver.support.select import select在利用selenium进行UI自动化测试过程中,经常会遇到下拉框选项,这篇博客,就介绍下如何利用selenium的Select模块来对标准select下拉框进行操作。。。首先导入Select模块:1 # coding=utf-82 from selenium import...
2020-04-22 16:43:34
1102
转载 python interface zope
https://blog.youkuaiyun.com/mouday/article/details/84586985by the way:暂时没发现 zope.interface 的有啥好处from zope.interface import Interfacefrom zope.interface.declarations import implementerclass IHuman...
2020-04-20 14:38:04
127
原创 python mindom 模块
https://www.cnblogs.com/wcwnina/p/7222180.htmlPython minidom模块(DOM写入和解析XML)
2020-04-20 14:26:54
416
原创 xpath定位方法详解
https://www.cnblogs.com/unknows/p/7684331.html1、id 获取id 的属性值2、starts-with 顾名思义,匹配一个属性开始位置的关键字 -- 模糊定位3、contains 匹配一个属性值中包含的字符串-- 模糊定位4、text() 函数文本定位5、last() 函数位置定位...
2020-02-25 22:38:35
188
原创 python 类中public,protected,private定义方式
inlist = list(map(int, input().split()))
2020-02-05 21:27:17
487
原创 软件测试设计方法
基于规格的黑盒测试:功能测试分类:1、数据---边界值、等价类、域测试、分类数、随机选择、统计选择2、组合---不组合、正交、pairwise、N-wise3、事件驱动---状态图4、流程---usecase5、逻辑--决策树、判定表、因果图6、全景--场景测试非功能测试:性能/能力可靠性可用性可维护性安全可测试性基于经验及其他:...
2019-12-12 14:16:29
267
原创 Jmeter提取响应字段
https://www.cnblogs.com/whitewasher/p/9504728.htmlhttps://www.cnblogs.com/whitewasher/p/6762793.html
2019-12-08 10:01:59
1603
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人