上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 49 下一页
摘要: https://www.jb51.net/article/165699.htm 阅读全文
posted @ 2019-09-18 18:02 秋寻草 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 需要查询某一天的数据,但是库里面存的是下图date类型 将Oracle中时间字段转化成字符串,然后进行字符串模糊查询 阅读全文
posted @ 2019-09-18 17:39 秋寻草 阅读(5695) 评论(0) 推荐(1) 编辑
摘要: Django REST framework官网 http://www.sinodocs.cn/ django中文网 https://www.django.cn/ 阅读全文
posted @ 2019-09-18 14:41 秋寻草 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1、安装django pip install django 2、新建一个django工程 python manage.py startproject cainiao_monitor_api 3、新建一个app python manage.py startapp monitor 4、安装DRF pip 阅读全文
posted @ 2019-09-18 13:54 秋寻草 阅读(915) 评论(0) 推荐(0) 编辑
摘要: config.py OracleOperation.py 阅读全文
posted @ 2019-09-16 13:08 秋寻草 阅读(2427) 评论(1) 推荐(0) 编辑
摘要: 打印查询结果,中文显示为了??? [('72H FCR', '2.0'), ('?????', '8.0')] E:\Python35\Lib\site-packages中新增文件: sitecustomize.py 阅读全文
posted @ 2019-09-16 11:29 秋寻草 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Python类 输出: self表示的是类的实例 当创建实例a = Student('斯科拉', 39)时,会默认执行def __init__()方法, 传入的参数就是该方法的形参,self.name = name表示将传入的'斯科拉'赋值给self.name即给实例的name属性赋值 阅读全文
posted @ 2019-09-13 21:51 秋寻草 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 很全面:https://blog.csdn.net/bearstarx/category_9362957.html 上海悠悠:https://www.cnblogs.com/yoyoketang/tag/pytest/ 阅读全文
posted @ 2019-09-12 17:56 秋寻草 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 原文:https://www.cnblogs.com/peiminer/p/9376352.html 之前我写的unittest的setup和teardown,还有setupClass和teardownClass(需要配合@classmethod装饰器一起使用),接下来就介绍pytest的类似于这类 阅读全文
posted @ 2019-09-12 17:38 秋寻草 阅读(16928) 评论(0) 推荐(2) 编辑
摘要: 之前一般做自动化测试用的是unitest框架,发现pytest同样不错,写一个例子感受一下 test_sample.py 执行命令: 执行test_sample.py这个文件中的所有测试函数,并将执行结果输出到report.html报告中 阅读全文
posted @ 2019-09-12 16:48 秋寻草 阅读(2267) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 49 下一页