使用回归法选股, 和之前选取的因子是一样的 def regression_select(context,bar_dict): # 查询因子数据 q=query(fundamentals.eod_derivative_indicator.pe_ratio, fundamentals.eod_deriv ...
分类:
其他好文 时间:
2021-03-26 15:19:28
阅读次数:
0
开启mysql缓存后,数据没有更新的情况下,相同的查询sql会使用缓存数据返回结果。在数据更新较少,类似查询较多的情况下,使用mysql缓存可以显著提升查询效率。 mysql查询缓存参数设置 (1) have_query_cache表示是否支持查询缓存,YES表示支持 (2) query_cache ...
分类:
数据库 时间:
2021-03-17 14:15:55
阅读次数:
0
慢日志slow-log的作用 记录运行较慢的语句,优化过程中常用的工具日志 默认未开启慢日志,需要修改配置文件my.cnf开启 $ vim /etc/my.cnf [mysqld] #开启慢日志 slow_query_log=1 #慢日志记录文件位置,目录提前创建好且有权限 slow_query_l ...
分类:
其他好文 时间:
2021-03-17 14:02:38
阅读次数:
0
1.url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。 2.type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。 3.timeout: 要求为Number类型的 ...
分类:
Web程序 时间:
2021-03-16 13:48:26
阅读次数:
0
Description 400 AC 祭 题面 : 【Link】 长度为 \(n\) 的序列,序列中的值为 1 或 -1。 有 \(m\) 个询问,询问在 \([L,R]\) 中区间和为 0 的区间的最大长度。 \(1 \leq n,m \leq 5 \times 10 ^ 4\),\(1 \leq ...
分类:
其他好文 时间:
2021-03-16 11:56:39
阅读次数:
0
select * from pub_query_condition where pk_templet in (select id from pub_query_templet where node_code like'HTK103%')把consult_code 设置成bd_refinfo的参照名字 ...
分类:
其他好文 时间:
2021-03-15 10:59:36
阅读次数:
0
使用EasyExcel操作excel https://www.yuque.com/easyexcel/doc/easyexcel 返回指定json格式数据 1)添加课程分类 获取上传过来的excel文件,读取里面的内容,存入数据库 当不需要spring管理的类(如Listern等)调用注入到spri ...
分类:
其他好文 时间:
2021-03-15 10:56:22
阅读次数:
0
from rest_framework.exceptions import ValidationError # ... raise ValidationError(detail="size must be either 'large' or 'small'") DRF catches these e ...
分类:
其他好文 时间:
2021-03-10 13:08:25
阅读次数:
0
pom.xml 支持springBoot parent <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.4.1</v ...
分类:
编程语言 时间:
2021-03-09 13:40:57
阅读次数:
0
学习知识点:Ribbon和Feign的区别:Ribbon添加maven依赖:Spring-starter_ribbon使用RestTemplate调用远程服务对应的方法 @RibbonClient(value="服务名称")Frign添加maven依赖spring_starter-feign 在接口 ...
分类:
移动开发 时间:
2021-03-08 13:38:33
阅读次数:
0