title: libevent学习-reactor设计模式及代码示例 date: 2021-01-22 11:39:35 tags: libevent categories: libevent学习 Reactor Design Pattern Reactor设计模式包含句柄(Handle)、Reac ...
分类:
其他好文 时间:
2021-06-02 13:32:16
阅读次数:
0
本文只说明如何使用zebra进行分库分表,不涉及原理源码 一 数据源配置文件 <bean id="shardDataSource" class="com.dianping.zebra.shard.jdbc.ShardDataSource" init-method="init"> <!-- lion配 ...
分类:
其他好文 时间:
2021-06-02 13:15:40
阅读次数:
0
控制器注解参数判空 调用效果展示 ## 正常 { "id": 14, "name": "张三", "sex": "男" } ## 姓名不能为空 { "code": -1, "message": "姓名不能为空", "data": null } ## 性别不能为空 { "code": -1, "mes ...
分类:
其他好文 时间:
2021-06-02 13:13:35
阅读次数:
0
10个月的数据统计、 select a.f_year,a.f_month , Convert(decimal(5,2),100-100*numQualified/nullif(numFeed,0)) KpiUnqualified , Convert(decimal(5,2),numQualified ...
分类:
其他好文 时间:
2021-06-02 13:05:34
阅读次数:
0
#include <stdio.h> #include <stdlib.h> #include <time.h> #define max(a, b) ((a) > (b) ? (a) : (b)) typedef struct Node { int key, height; struct Node ...
分类:
其他好文 时间:
2021-06-02 12:24:05
阅读次数:
0
1,下载 Golang官网下载地址:https://golang.google.cn/dl/ 2,解压到指定目录 3,运行go 获取环境变量修改方法 go help env usage: go env [-json] [-u] [-w] [var ...] Env prints Go environ ...
分类:
其他好文 时间:
2021-06-02 11:10:05
阅读次数:
0
用python来自动生成excel数据文件。python处理excel文件主要是第三方模块库xlrd、xlwt、xluntils和pyExcelerator,除此之外,python处理excel还可以用win32com和openpyxl模块。 “阿贝云”"免费虚拟主机"“免费云服务器”方法一: 小罗 ...
分类:
编程语言 时间:
2021-06-02 10:55:41
阅读次数:
0
找到该路径并添加以下信息 File->settings->Editor->File and Code Templates->Python Script #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # ...
分类:
其他好文 时间:
2021-06-02 10:53:03
阅读次数:
0
let date = new Date() for (let m = 1; m < 13; m++) { let num = new Date(date.getFullYear(), m, 0).getDate(); for (let i = 1; i < num + 1; i++) { //再把天 ...
分类:
Web程序 时间:
2021-05-25 17:54:29
阅读次数:
0
使用ubuntu环境 安装miniconda3 查看 https://mirrors.bfsu.edu.cn/help 安装配置镜像等 安装需要的包 pip install jupyter d2l torch torchvision 下载代码并执行 wget https://zh-v2.d2l.ai ...
分类:
其他好文 时间:
2021-05-24 17:21:55
阅读次数:
0