Dapper
Execute()
Query()
QueryFirst()/QueryFirstOrDefault()/QuerySingle()/QuerySingleOrDefault()
QueryMultiple() ...
分类:
移动开发 时间:
2020-06-28 22:45:58
阅读次数:
77
#数据怎么存 name_info = {"lisi":['123456','15512345678',5000.1]} #查询 def Query_yue(username): #取出登录用户的余额 print(f"{username}的账户余额为:{name_info[username][2]}" ...
分类:
其他好文 时间:
2020-06-28 13:43:50
阅读次数:
63
1. 什么是MediatR MediatR 是一个第三方的类库,主要解决将消息的发送和消息的处理进行分离.github地址 https://github.com/jbogard/MediatR/wiki MediatR 支持The Command and Query Responsibility S ...
分类:
Web程序 时间:
2020-06-28 13:42:59
阅读次数:
90
传送门 很棒的题。 有两个序列a和b,长度都为n,对于a序列需要知道区间的最大值,对于b序列需要知道区间的最小值 求出符合式子 \(max_{i = l}^ra_i = min_{i = l}^rb_i\) 的所有区间个数。 方法很简单,用st表分别维护a序列的最大值的b序列的最小值,明显,a序列的 ...
分类:
其他好文 时间:
2020-06-27 19:49:33
阅读次数:
59
首先我们要有城市的json数据 以下以上饶市为例,是上饶市的json数据 {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":361102,"name":"信州区","center":[11 ...
分类:
其他好文 时间:
2020-06-27 16:04:34
阅读次数:
117
MySQL04:使用DQL查询数据 基于MySQL5.7.19版本 使用DQL查询数据 DQL语言 DQL( Data Query Language 数据查询语言 ) 查询数据库数据 , 如SELECT语句 简单的单表查询或多表的复杂查询和嵌套查询 是数据库语言中最核心,最重要的语句 使用频率最高的 ...
分类:
数据库 时间:
2020-06-27 09:46:13
阅读次数:
68
Range Sum Query - Immutable (E) 题目 Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Give ...
分类:
其他好文 时间:
2020-06-27 09:44:58
阅读次数:
46
恢复内容开始 Range Sum Query 2D - Immutable (M) 题目 Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left cor ...
分类:
其他好文 时间:
2020-06-27 09:36:59
阅读次数:
61
传送门 就是简单的ST表问题+ LCA,用ST表预处理好连续区间的LCA,然后进行查询 注意HDU是多组输入,把相应的值清零即可。 LCA采用倍增法,lg是常数优化。 ST表用模板,维护$[i,i + 2^j - 1]$这个区间的LCA 时间复杂度为预处理$O(nlogn)$ 查询$O(mlogn) ...
分类:
其他好文 时间:
2020-06-27 09:32:26
阅读次数:
54
layui对radio和select做了包装,正常用jquery选中后使用trigger不起作用。 那么,怎么让其自动触发呢? 对radio来说,必须在$选中后.next('.layui-form-radio').click(); 例如:$(':radio:checked').click();就不行 ...
分类:
其他好文 时间:
2020-06-27 00:03:59
阅读次数:
240