在 Windows 10 上安装 PostgreSQL 时出错:Warning:Problem running post-install step. Installation may not complete correctly Failed to start the database server ...
分类:
数据库 时间:
2020-07-30 01:47:58
阅读次数:
114
from selenium import webdriver import time driver=webdriver.Chrome() driver.get("http://www.douban.com/") driver.find_element_by_xpath('//*[@id="anony ...
分类:
Web程序 时间:
2020-07-30 01:19:09
阅读次数:
86
refresh 方法 刷新:将数据库中的数据刷新到Managed状态的实体中 refresh 方法测试 find 之后 setter 之后 refresh @Test public void test() { EntityManagerFactory factory = Persistence.cr ...
分类:
其他好文 时间:
2020-07-29 21:46:10
阅读次数:
60
具体代码如下: import requests import re headers = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74. ...
分类:
其他好文 时间:
2020-07-29 21:39:19
阅读次数:
106
flush 方法 将Managed状态的实体中的数据更新到数据库中(不用等到 commit 了) flush 方法测试 find 之后 setter 之后 flush @Test public void test() { EntityManagerFactory factory = Persiste ...
分类:
其他好文 时间:
2020-07-29 21:37:22
阅读次数:
71
今天想将项目的jdk版本从8升级到11,maven编译时遇到了下面的问题 错误日志 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile ...
分类:
其他好文 时间:
2020-07-29 21:37:09
阅读次数:
98
Version :QT5.9.0 编译器:MSVC2015 32Bit 今天在编译一个 demo的时候出现了 Could not find the Executable 的提示,并有如下对话框: 通过多次查找得出结论,工程编译出来的是插件不是可执行文件,QT不能找到可执行文件,才弹出此提示。 解决方 ...
分类:
其他好文 时间:
2020-07-29 21:23:36
阅读次数:
221
find方法 立即加载:在调用find方法的时候,就会发送sql语句查询数据库。 找到返回实体类对象,可以用于remove,setter,remove之后还可以调用persist保存。 找不到返回null。 find方法测试 find之后setter实现更新 @Test public void te ...
分类:
其他好文 时间:
2020-07-29 21:17:17
阅读次数:
78
CF 1374A. Required Remainder You are given three integers x,y and n. Your task is to find the maximum integer k such that 0≤k≤n that kmodx=y, where mo ...
分类:
其他好文 时间:
2020-07-29 10:29:20
阅读次数:
63
Little W and Contest 思路:首先很显然是并查集去维护答案。 一开始,所有点都是独立的。那么设CF1 = 1的总个数。CF2 = 2的总个数 那么一开始ans = C(CF1,1)*C(CF2,2)+C(CF2,3). 那么考虑合并后怎么维护答案。 这里运用了容斥思想。 当我们合并 ...
分类:
其他好文 时间:
2020-07-29 10:20:09
阅读次数:
65