##题面 Problem Description Lele now is thinking about a simple function f(x). If x < 10 f(x) = x. If x >= 10 f(x) = a0 * f(x-1) + a1 * f(x-2) + a2 * f(x ...
分类:
其他好文 时间:
2020-07-12 16:40:31
阅读次数:
59
用pip管理工具安装库默认使用国外的源文件,下载速度比较慢,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度非常快。比较常用的国内镜像包括:(1)阿里云 http://mirrors.aliyun.com/pypi/simple/(2)豆瓣http://pypi.douban.com/si ...
分类:
其他好文 时间:
2020-07-12 12:21:02
阅读次数:
109
三、SpringBoot日志功能 1、日志框架 市面上的日志框架: JUL、JCL、Jboss-logging、Logback、Log4j、Log4j、SLF4J... 日志门面(日志的抽象层) 日志实现 ~~JCL(Jakarta Commons Logging)~~SLF4J(Simple Lo ...
分类:
编程语言 时间:
2020-07-10 21:07:58
阅读次数:
72
安装配置Grafana参考 https://testerhome.com/articles/23629 使用配置 下载jmx_exporter https://github.com/prometheus/jmx_exporter 创建jmx_exporter配置文件 vim simple-confi ...
分类:
其他好文 时间:
2020-07-10 17:25:02
阅读次数:
118
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pywin32 pip install pyHook?1.5.1?cp37?cp37m?win_amd64.whl pip install PyUserInput 安装不成功的可以参照ht ...
分类:
编程语言 时间:
2020-07-10 17:21:02
阅读次数:
75
网上看的大部分都是是说 配置 SimpleMessageListenerContainer 的 concurrentConsumers属性来确定activeMQ有多少个消费者。 但是: 我用的是 spring boot SimpleMessageListenerContainer 是自动配置的,并不 ...
分类:
编程语言 时间:
2020-07-10 15:31:42
阅读次数:
93
临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 默认使用 # windows系统使用cmd快速设置 pip install pip -U # 升级pip到最新版本 pip config set glo ...
分类:
其他好文 时间:
2020-07-10 11:31:59
阅读次数:
180
临时换源: pip2 install setuptools==44.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple 永久换源: vim ~/.pip/pip.conf [global] index-url=http://pypi.douban.com/ ...
分类:
其他好文 时间:
2020-07-09 12:15:00
阅读次数:
203
参考 https://dev.mysql.com/doc/refman/5.7/en/optimizer-hints.html Hint Name Description Applicable Scopes BKA, NO_BKA Affects Batched Key Access join pr ...
分类:
数据库 时间:
2020-07-08 22:53:45
阅读次数:
98
1、在 app 目录下创建 templatetags 目录(目录名只能是 templatetags)。 如: app/ __init__.py models.py templatetags/ __init__.py mytag.py views.py 2、创建任意 .py 文件,如:mytag.py ...
分类:
其他好文 时间:
2020-07-08 01:15:14
阅读次数:
66