会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
菜菜_包包
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2019年2月25日
获取文件的绝对路径
摘要: import ospath = os.path.join(os.path.dirname(__file__), 'bbc_test.yaml').replace('\\','/')print path
阅读全文
posted @ 2019-02-25 16:18 菜菜_包包
阅读(523)
评论(0)
推荐(0)
2018年12月27日
pytest命令行选项
摘要: -m 标记 代码加一个装饰器:@pytest.mark.run_bbc_test,命令行添加 -m run_bbc_test,执行带@pytest.mark.run_bbc_test的测试用例; -k 定位 测试用例名称为:test_one,test_two,命令行添加-k “one”,执行test
阅读全文
posted @ 2018-12-27 14:49 菜菜_包包
阅读(302)
评论(0)
推荐(0)
2018年11月7日
Python继承
摘要: #coding:utf8class Car(object): ''' 模拟汽车的简单尝试 ''' def __init__(self, make, model, year): ''' 初始化汽车的属性 :param make: :param model: :param year: ''' self.
阅读全文
posted @ 2018-11-07 17:52 菜菜_包包
阅读(474)
评论(0)
推荐(0)
python 类实例化,修改属性值
摘要: class User(object): def __init__(self, first_name, last_name, login_attempts): self.first_name = first_name self.last_name = last_name self.login_atte
阅读全文
posted @ 2018-11-07 17:51 菜菜_包包
阅读(1719)
评论(0)
推荐(0)
2018年10月29日
Python if-elif-else
摘要: alien_color = ['green','yellow','red']for color in alien_color: if color == 'green': print 'alien_color_%s: player to obtain five !'%color elif color
阅读全文
posted @ 2018-10-29 10:47 菜菜_包包
阅读(594)
评论(0)
推荐(0)
2018年10月23日
python 元组
摘要: 转换
阅读全文
posted @ 2018-10-23 15:53 菜菜_包包
阅读(126)
评论(0)
推荐(0)
Python 列表笔记
摘要: 列表解析
阅读全文
posted @ 2018-10-23 15:10 菜菜_包包
阅读(192)
评论(0)
推荐(0)
2018年10月22日
Python杂记
摘要: 1、修改字符串大小
阅读全文
posted @ 2018-10-22 16:39 菜菜_包包
阅读(143)
评论(0)
推荐(0)
2018年10月18日
http状态码说明
摘要: 1XX:接受请求正在处理 2XX:请求正常处理完毕 3XX:重定向 4XX:服务器无法处理次请求(客户端错误) 5XX:服务器处理请求出错(服务器错误) 以下列出几种常见的状态码及解释 200 从客户端发来的请求被正常处理了(有时会返回一个错误的结果,但是会返回结果) 204 从客户端发来的请求处理
阅读全文
posted @ 2018-10-18 15:20 菜菜_包包
阅读(223)
评论(0)
推荐(0)
2018年10月12日
获取APK的package名和activity名
摘要: 使用 aapt dump badging + 需要安装的APK
阅读全文
posted @ 2018-10-12 10:56 菜菜_包包
阅读(280)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告