随笔分类 -  python

pyhton相关的内容
摘要:问题一、 raise OSError(f"cannot write mode {im.mode} as JPEG") from eOSError: cannot write mode RGBA as JPEG 解决方法一: from PIL import Image im = Image.open( 阅读全文
posted @ 2021-10-28 09:49 jiguanghover 阅读(284) 评论(0) 推荐(0) 编辑
摘要:e.g: pip install pygame http://mirrors.aliyun.com/pypi/simple/ 安装方法可以直接在命令行输入pip install -扩展包名字。 加快安装速度可以使用国内镜像源。清华:https://pypi.tuna.tsinghua.edu.cn/ 阅读全文
posted @ 2020-09-05 11:57 jiguanghover 阅读(164) 评论(0) 推荐(0) 编辑
摘要:一、pytest + allure 1) 测试报告添加图片: f_cart = open(img_name,'rb').read() allure.attach(f_cart,"cart",allure.attachment_type.PNG) 阅读全文
posted @ 2020-04-21 10:24 jiguanghover 阅读(283) 评论(0) 推荐(0) 编辑
摘要:在mac下使用allure 生成测试报告,需要安装软件为: 1. pytest 2. allure-pytest 或者 pytest-allure-adaptor (记住二者只能选其一) 3. allure(依赖jdk环境1.8+) (https://github.com/allure-framew 阅读全文
posted @ 2020-04-12 12:24 jiguanghover 阅读(4960) 评论(0) 推荐(0) 编辑
摘要:1.python3下出现问题(首先安装pymysql与mysqlclient):django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.解决方法:在项目的 阅读全文
posted @ 2020-02-18 11:54 jiguanghover 阅读(165) 评论(0) 推荐(0) 编辑
摘要:一、NoneBot使用 阅读全文
posted @ 2020-01-09 10:19 jiguanghover 阅读(3559) 评论(0) 推荐(0) 编辑
摘要:此随笔记录在使用python过程中遇到的所有问题 1. linecache处理中文 阅读全文
posted @ 2019-09-20 14:28 jiguanghover 阅读(142) 评论(0) 推荐(0) 编辑
摘要:一、pip install pyspider 安装出现错误: Command "python setup.py egg_info" failed with error code 10 in C:\Users\xxx\AppData\Local\Temp\pip-install-tc5uvu7l\py 阅读全文
posted @ 2019-08-16 16:00 jiguanghover 阅读(1989) 评论(0) 推荐(1) 编辑
摘要:一、首先创建测试套件 # -*- coding:utf-8 -*-from __future__ import print_functionimport pytestimport allure class TestAppSuite(object): pass if __name__ == '__ma 阅读全文
posted @ 2019-03-29 17:15 jiguanghover 阅读(1272) 评论(0) 推荐(0) 编辑
摘要:问题一、AttributeError: module 'pytest' has no attribute 'allure'解决方法:pip3 uninstall pytest-allure-adaptorpip3 install allure-pytest 阅读全文
posted @ 2019-03-28 15:05 jiguanghover 阅读(271) 评论(0) 推荐(0) 编辑
摘要:1.判断按钮状态 if d(resourceId="id",enabled=False): #判断当前按钮是否为未激活状态,为True则为激活状态2.获取toast提示语 d.toast.get_message(5.0, default="")3. 获取元素的属性 ele = d(resourceI 阅读全文
posted @ 2019-01-29 14:43 jiguanghover 阅读(579) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示