会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
东方不败--Never
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
11
12
13
下一页
2019年9月1日
unittest 报告——HTMLTestRunner/BSTestRunner+代码覆盖率
摘要: 1. HTMLTestRunner.py 代码(python3)如下: python2: https://github.com/tungwaiyip/HTMLTestRunner 1 """ 2 A TestRunner for use with the Python unit testing fr
阅读全文
posted @ 2019-09-01 20:36 东方不败--Never
阅读(427)
评论(0)
推荐(0)
2019年8月31日
unittest 详解
摘要: 内容总括 一. 初始化 二. 执行顺序 三. 断言 四. 报告 五. 其他 1. setUp 与 tearDown 有几个test,就执行几次setUp 与 tearDown,浪费资源 有几个test,就执行几次setUp 与 tearDown,浪费资源 2. setUpClass 与 tearDo
阅读全文
posted @ 2019-08-31 23:04 东方不败--Never
阅读(480)
评论(0)
推荐(0)
2019年8月29日
python 获取安装包apk, ipa 信息
摘要: # -*- coding:utf-8 -*- import re import os import zipfile from biplist import * from androguard.core.bytecodes import apk class AnalyzePackage: def get_android_data(self, package_file): ...
阅读全文
posted @ 2019-08-29 19:11 东方不败--Never
阅读(1245)
评论(0)
推荐(0)
2019年8月6日
django 百度分页算法
摘要: 效果如下: 脚本: 1. 脚本结构 from django.utils.safestring import mark_safe class Page: ''' current_page: 当前页码 data_count: 数据总个数 per_page_count: 每页展示几个数据 pager_nu
阅读全文
posted @ 2019-08-06 22:22 东方不败--Never
阅读(244)
评论(0)
推荐(0)
Django model select的各种用法详解
摘要: 请跳转: https://ops-coffee.cn/s/JVh4UnS2Tql9gUVaBSoGuA 补充: 创建: 方法一: d = { "name": "he", "age" : 17, } rec = models.Student.objects.create(**d) print("rec
阅读全文
posted @ 2019-08-06 18:43 东方不败--Never
阅读(512)
评论(0)
推荐(0)
selenium 实战
摘要: iframe 多窗口 from selenium import webdriver from time import sleep driver = webdriver.Chrome() driver.get("http://mail.sina.com.cn/") driver.implicitly_
阅读全文
posted @ 2019-08-06 00:15 东方不败--Never
阅读(184)
评论(0)
推荐(0)
2019年8月5日
django 自带认证系统(login,logout,authenticate,login_required)
摘要: from django.contrib.auth import login,authenticate,logoutfrom django.contrib.auth.decorators import login_requiredsetting.py AUTH_USER_MODEL = 'mytest
阅读全文
posted @ 2019-08-05 10:38 东方不败--Never
阅读(1169)
评论(0)
推荐(0)
2019年7月18日
屏蔽iOS升级方法
摘要: 1.iPhone或者iPad使用safari浏览器打开http://d.updater.i4.cn/i4tools7/temp/tvos.mobileconfig 2.点击【允许】 3.进入【通用】-【设置】-【描述文件与设备管理】-点击【tvOS 12 beta Software Profile】
阅读全文
posted @ 2019-07-18 10:12 东方不败--Never
阅读(2329)
评论(0)
推荐(0)
2019年7月4日
解决 Jenkins 乱码以及命令不存在的问题
摘要: 方法一: Jenkins 系统管理 系统设置 全局属性 勾选环境变量 键 LANG 值 zh_CN.UTF-8 方法二(如果脚本用的是python): PYTHONIOENCODING=utf-8 python3 脚本路径 命令或者模块不存在,在jenkins 的shell 开头处添加: #!/bi
阅读全文
posted @ 2019-07-04 20:04 东方不败--Never
阅读(430)
评论(0)
推荐(0)
2019年6月25日
【airtest, python】报错:requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')),解决方法如下
摘要: 环境及设备 mac, xcode , iphonex 问题 最近出现一个让人费解的问题,airtest 没跑多长时间,服务就断掉,而且总是报“requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetErr
阅读全文
posted @ 2019-06-25 15:25 东方不败--Never
阅读(13321)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
下一页
公告