上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 92 下一页
摘要: 转自:Python 读写字节数据 使用模式为 rb 或 wb 的 open() 函数来读取或写入二进制数据。比如: # Read the entire file as a single byte string with open('somefile.bin', 'rb') as f: data = 阅读全文
posted @ 2022-01-09 13:32 Lucky小黄人^_^ 阅读(292) 评论(0) 推荐(0)
摘要: 作者:亚索没学E链接:https://xueqiu.com/6368551720/206211290 先说结论: 1. C端见顶(移动互联网进入末期) ​ 2. 清朗行动、个保法、双清单等 ​ 3. 商业化收入降低 ​ 4. 反垄断 C端见顶 98~10年是PC 互联网的时代,10~20年是移动互联 阅读全文
posted @ 2021-12-26 17:54 Lucky小黄人^_^ 阅读(549) 评论(0) 推荐(0)
摘要: 因为 encodestring 是 python2 的语法,在 python3 已经用别的方法取代它了,所以在 python3 环境导入base64.encodestring 会失败,但是在 python2 环境可以导入成功。 阅读全文
posted @ 2021-12-25 22:52 Lucky小黄人^_^ 阅读(237) 评论(0) 推荐(0)
摘要: 1、前言 在测试前端 http 请求的过程中,经常有会某种特出情况极难复现,从而无法测试相应响应结果触发的前端弹窗或者样式状态变化是否符合预期的情况,但是作为一个专业的测试同学,这当然难不倒我们。这时我们往往会选用 MapLocal 功能来实现,提前将需要 mock 的response 保存到本地文 阅读全文
posted @ 2021-12-25 22:31 Lucky小黄人^_^ 阅读(580) 评论(0) 推荐(0)
摘要: 转自:pip 安装或升级到指定版本依赖包 pip install --upgrade keras==2.1.0 升级到指定版本 pip install keras==2.1.0 安装指定版本 pip uninstall requests 卸载 requests 转自:pip 安装或升级到指定版本依赖 阅读全文
posted @ 2021-12-25 21:53 Lucky小黄人^_^ 阅读(1732) 评论(0) 推荐(0)
摘要: python 读取csv文件,无法读取第一列的数据,不知道为什么。以后有时间再来研究 import os import csv import json fw = open("data_json.py", "w") index = 0 with open("log_test/tests/data.cs 阅读全文
posted @ 2021-12-25 21:43 Lucky小黄人^_^ 阅读(545) 评论(0) 推荐(0)
摘要: 使用requests库报下面这个警告 /Users/xxxance/python_project/code.xxx.org/ad/devops_python/venv/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: Insecu 阅读全文
posted @ 2021-12-21 21:33 Lucky小黄人^_^ 阅读(2245) 评论(0) 推荐(0)
摘要: checklist 编写工具 checklist文档格式推荐使用思维导图。比如 MindMaster 和 processon。我喜欢用这些平台或者软件的思维导图大纲模式来编写 checklist。 checklist 需要包含的内容 checklist 最重要的当然是测试用例,除此之外,附上相关依赖 阅读全文
posted @ 2021-12-21 10:42 Lucky小黄人^_^ 阅读(1288) 评论(0) 推荐(0)
摘要: 打印当前时间戳 import time import datetime t = time.time() print (t) #原始时间数据 print (int(t)) #秒级时间戳 print (int(round(t * 1000))) #毫秒级时间戳 print (int(round(t * 阅读全文
posted @ 2021-12-19 16:31 Lucky小黄人^_^ 阅读(1720) 评论(0) 推荐(0)
摘要: 我们都知道json.loads() 和 json.dumps() 分别用来将字符串装换成 json 和 将 json 转换成字符串,那读取 json 文件怎么操作呢,下面我们来看一下: 结论 使用 json.load 来读取 json 文件内容,json.dump()来格式化内容到json文件 读取 阅读全文
posted @ 2021-12-19 15:19 Lucky小黄人^_^ 阅读(8046) 评论(3) 推荐(1)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 92 下一页