一、在接口自动化测试过程中,存在两种情况: 一种是不需要鉴权的接口,可以直接访问的。 还有一种情况是需要鉴权才可以访问的接口。 这里我们通过Python + requests 实现这两种发送请求的方法 """ author:Treasure丶time:2019/11/28E-mail:1247814 ...
分类:
编程语言 时间:
2020-01-11 20:27:04
阅读次数:
103
由于使用round模块导致小数四舍五入精度不准确,于是自己写了一个四舍五入的方法,方便今后工作中参考! """"""""""""""""""""""""""""# -*- coding: utf-8 -*-# @Time : 2019/12/27 18:09# @Author : Treasure丶 ...
分类:
编程语言 时间:
2019-12-27 19:50:13
阅读次数:
70
This is an interesting puzzle game. In the game, you need to use your brain, think carefully, operate reasonably, point your fingers to catch things, ...
分类:
其他好文 时间:
2019-12-07 19:33:20
阅读次数:
68
So, it is most likely the most crucial portion of the years spent researching for a college degree. You may be good at writing, hunting information, a ...
分类:
其他好文 时间:
2019-11-14 22:15:13
阅读次数:
94
链接: http://acm.hdu.edu.cn/showproblem.php?pid=5446 题意: On the way to the next secret treasure hiding place, the mathematician discovered a cave unknow ...
分类:
其他好文 时间:
2019-11-06 23:04:46
阅读次数:
119
题目链接:传送门 思路: 仔细观察可以发现,答案最多就是2,只要把(2,1)和(1,2)堵住就可以了。 答案是0的情况就是初始状态下,(1,1)就已经不可达(n,m)了,很好判断。 所以重点就是区分答案为1和答案为2的情况。 如果答案为1的话,就说明从(1,1)到(n,m)的所有路径都经过同一个点( ...
分类:
其他好文 时间:
2019-10-08 12:08:17
阅读次数:
87
Have you ever read any book about treasure exploration? Have you ever see any film about treasure exploration? Have you ever explored treasure? If you ...
分类:
其他好文 时间:
2019-10-06 16:51:17
阅读次数:
70
739E有$a$个普通球,$b$个超级球,有$n$个要捕捉的宝可梦,对于第$i$个宝可梦普通球的捕捉概率是$p_i$,超级球的捕捉概率是$u_i$,每种球只能扔一个到同一个宝可梦,同一个宝可梦可以被扔两种球。然后问在最优策略下捕捉个数的期望考虑概率$dp$,发现状态无法简化到$n^2$级别,原来不是... ...
分类:
其他好文 时间:
2019-10-01 14:40:41
阅读次数:
116
一些说明、参阅 https://github.com/MorvanZhou/Reinforcement-learning-with-tensorflow/blob/master/contents/1_command_line_reinforcement_learning/treasure_on_ri ...
分类:
其他好文 时间:
2019-09-13 22:45:56
阅读次数:
142
HDU - 5770 没想出来, 感觉不应该啊, 没有想到转换成二维上的点的问题。 对于对钥匙和宝藏(u, v), 如果lca != u && lca != v 那么起点从u子树出发, 终点在v子树就能得到贡献。 子树在dfs序下是连续一段, 所以就对应到二维平面一个矩形加上一个数值, 求值最大的点 ...
分类:
其他好文 时间:
2019-09-12 16:30:39
阅读次数:
93