from rest_framework.viewsets import ModelViewSet from .authentication_classes import UserAuth from .permission_classes import UserPerm class BookView( ...
分类:
其他好文 时间:
2020-02-21 22:03:12
阅读次数:
60
'''用户认证章节''' # 用户认证章节:写一个数据接口 from django.http import JsonResponse from .utils import get_token from rest_framework.exceptions import APIException cla ...
分类:
其他好文 时间:
2020-02-21 19:47:53
阅读次数:
68
本文部分内容引用:https://www.cnblogs.com/netbatman/p/10374072.html 什么是泛型? C# 语言和公共语言运行时 (CLR) 在 2.0 版本中添加了泛型。泛型将类型参数的概念引入 .NET Framework,这样就可以设计具有相同特征的类和方法:在客 ...
一、Response二次封装 我们想要对响应类进行自定义,以后就用我们自己自定义的响应类 # 新建response.py文件 from rest_framework.response import Response class APIResponse(Response): def __init__( ...
分类:
其他好文 时间:
2020-02-20 23:51:09
阅读次数:
71
select frame关键字: 接收一个参数locator,进行定位 open browser http://www.baidu.com chrome select frame id=fra ${list} get list items id=buy unselect frame //返回到最上层 ...
分类:
其他好文 时间:
2020-02-20 20:43:11
阅读次数:
90
安装某应用,运行提示: 应用程序无法正常启动(0xc0000135) 应该是缺少 .net framework. 控制面板-程序-“启用或关闭windows功能” 勾选.NET Framework等相关功能后无效,再次打开仍然显示未勾选。 1, 开始-输入cmd,自动出来的“命令提示符”上右键,选择 ...
mouse down关键字:模拟按下鼠标的左键操作 该关键字接收一个参数[locator],可以通过id、name、xpath等进行定位 mouse down id=kw mouse up关键字:用来释放按下的鼠标左键 该关键字接收一个参数[locator],可以通过id、name、xpath等进行 ...
分类:
其他好文 时间:
2020-02-20 10:03:04
阅读次数:
88
list windows关键字:获取当前打开的所有页面窗口 不需要接收任何参数,返回一个列表 open browser http://www.baidu.com chrome ${result} list windows log ${result} sleep 2 close browser sel ...
分类:
其他好文 时间:
2020-02-20 09:42:25
阅读次数:
87
[TOC] Django REST framework 介绍 Django REST framework框架是一个用于构建 Web API 的强大而又灵活的工具. 通常简称为DRF框架 或 REST framework框架. 特点 提供了定义序列化器 serializer 的方法,可以快速根据 Dj ...
分类:
其他好文 时间:
2020-02-20 00:09:22
阅读次数:
84
SignTool.exe是微软官方发布的一个命令行工具,用于对文件进行数字签名,以及验证文件和时间戳文件中的签名,微软官方介绍文档:https://docs.microsoft.com/zh-cn/dotnet/framework/tools/signtool-exe 此工具会自动随 Visual ...
分类:
其他好文 时间:
2020-02-19 18:43:44
阅读次数:
303