//代码 public static void main(String[] args) throws Exception { String path = "f:/svn/t_dictionary.txt"; File file = new File(path);//源文件 Long fsize = ...
分类:
编程语言 时间:
2020-05-07 15:49:54
阅读次数:
185
1. 通过selector 注册两个对象,一个beanpostPocessor(AdvisorAutoProxyCreator),如果bean 存在Advisor ,生成代理对象,代理对象执行方法利用拦截器链进行调用; 2.读取事务注解属性; 注册事务拦截器,拦截器进行事务的处理: 1) 获取注解属 ...
分类:
编程语言 时间:
2020-05-07 15:54:41
阅读次数:
68
ref: https://blog.csdn.net/u013630349/article/details/47683293?utm_source=blogxgwz2 ref: https://blog.csdn.net/JohinieLi/article/details/76660733 ref: ...
分类:
编程语言 时间:
2020-05-07 17:02:37
阅读次数:
110
我在使用springboot时,当代码有问题时,发现控制台打印下面信息: Connected to the target VM, address: '127.0.0.1:42091', transport: 'socket' log4j:WARN No appenders could be foun ...
分类:
编程语言 时间:
2020-05-07 17:02:54
阅读次数:
98
做的我要吐了。。留着吧以后再看看 /* 两两枚举起始的点,然后按题意模拟寻找下去,为了加速,预处理nxt[i][j]表示直线p[i]->p[j]旋转时,下一个碰到点的下标 */ #include <iostream> #include <algorithm> #include <vector> #i ...
分类:
编程语言 时间:
2020-05-07 18:08:40
阅读次数:
69
1.在基于 Spring 的 web 项目中,我们可以随时随地获取到当前请求,获取方式就是下面给出的代码: HttpServletRequest req = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes() ...
分类:
编程语言 时间:
2020-05-07 18:09:58
阅读次数:
81
items.py class LianhezaobaospyderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() # pass body=scrapy.Field() li ...
分类:
编程语言 时间:
2020-05-07 18:11:01
阅读次数:
96
Before we start to research tail recursion, let’s first have a look at the normal recursion. A simple factorial implementation by recursion: Let N = 5 ...
分类:
编程语言 时间:
2020-05-07 18:12:04
阅读次数:
95
1.理解分类与监督学习、聚类与无监督学习。 简述分类与聚类的联系与区别。 分类:目的是为了确定一个点的类别,具体哪些类别是已知的,常用的算法是KNN,是一种有监督学习。 聚类:是将一系列点分成若干类,事先没有类别的常用K-means算法,是一种无监督学习。 简述什么是监督学习与无监督学习。 监督学习 ...
分类:
编程语言 时间:
2020-05-07 18:15:01
阅读次数:
69
基于OpenCV的KNN算法实现手写数字识别 一、数据预处理 (1000, 2000) 50 (50, 100, 20, 20) (2500, 400) 二、knn算法预测 True 2439 识别测试数据的准确率为: 0.9756 三、导入图片预测 (1, 400) 识别出的数字为: 9.0 (2 ...
分类:
编程语言 时间:
2020-05-07 19:21:45
阅读次数:
158
1. 声明:extern i; 2. 将循环边界用一个变量标志,方便修改,使用const限定符, const int buf_size = 100; 3. const定义的变量默认是局部变量,不能被其他文件访问, 如有需要,extern const int i; 非const 变量默认为extern ...
分类:
编程语言 时间:
2020-05-07 19:22:59
阅读次数:
89
@Bean("taskModuleExecutor") Executor getCrawler1(){ ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor(); threadPoolTaskExecut ...
分类:
编程语言 时间:
2020-05-07 19:24:10
阅读次数:
59
题目:给定一个整型数组,数组元素随机无序的,要求打印出所有元素右边第一个大于该元素的值。 如数组A=[1,5,3,6,4,8,9,10] 输出[5, 6, 6, 8, 8, 9, 10, -1] 如数组A=[8, 2, 5, 4, 3, 9, 7, 2, 5] 输出[9, 5, 9, 9, 9, - ...
分类:
编程语言 时间:
2020-05-07 19:31:56
阅读次数:
267
一、代码层结构 根目录:com.bajins 启动类BajinsApplication.java推荐放在根目录com.bajins包下 数据实体类domain: jpa项目: com.bajins.domain mybatis项目: com.bajins.entity 数据接口访问层Dao: jpa ...
分类:
编程语言 时间:
2020-05-07 19:35:01
阅读次数:
62
import pandas as pd # 设置列对齐 pd.set_option("display.unicode.ambiguous_as_wide",True) pd.set_option("display.unicode.east_asian_width",True) # 读取工号姓名时段交 ...
分类:
编程语言 时间:
2020-05-07 19:35:17
阅读次数:
91
工程相当于一个软件,包相当于模块,类相当于模块下各个功能的实现。(学过python的同学更好理解,类似python下模块和方法) 类下再有各种自己具体完成任务需要的成员变量和实现方法。主方法也在某一个public类中。 包(package)相当于姓名中的“姓”,类(class)相当于“名”。所以在调 ...
分类:
编程语言 时间:
2020-05-07 19:35:37
阅读次数:
166
```python import sys sys.path.append("./") import os import datetime import logging import platform from logging.handlers import RotatingFileHandler #... ...
分类:
编程语言 时间:
2020-05-07 19:35:51
阅读次数:
61
1. 变量里存的什么 Java通过 [类型 变量名] 的方式声明了一个变量。 当我们声明一个变量的时候,相当于在内存中为它指定了一个地址,通过变量我们可以访问到它代表的这块内存空间。 我们可以理解成,变量里存的就是它代表的这块内存空间里存储的值。 对于基本类型的变量来说,存的就是其具体的数值、字符或 ...
分类:
编程语言 时间:
2020-05-07 19:40:30
阅读次数:
59
#coding=utf-8from win32com.client import gencachefrom win32com.client import constants, gencachedef createPdf(wordPath, pdfPath): """ word转pdf :param ...
分类:
编程语言 时间:
2020-05-07 19:42:19
阅读次数:
410
import numpy as np x = np.array([1,4,5,2]) # array([1, 4, 5, 2]) # 返回排序后元素的原下标 np.argsort(x) # array([0, 3, 1, 2], dtype=int64) # 输出最大值的下标 x.argmax( ) ...
分类:
编程语言 时间:
2020-05-07 19:48:05
阅读次数:
72