const fs=require('fs'); //比较字符基类大小 相同返回0,str1>str2 返回1,str1<str2 返回-1, function str_compare(str1,str2){ let index=0; let dis=0; while (dis 0&&index<st ...
分类:
编程语言 时间:
2020-07-04 15:35:58
阅读次数:
79
报错详情org.springframework.dao.DataIntegrityViolationException: ### Error updating database. Cause: java.sql.SQLException: Data truncated for column 'use ...
分类:
数据库 时间:
2020-07-04 15:34:17
阅读次数:
221
mysql> start slave; ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository 处理一则MySQL Slave环境出现ERROR 1201 (HY000): ...
分类:
数据库 时间:
2020-07-04 15:31:50
阅读次数:
81
Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two di ...
分类:
其他好文 时间:
2020-07-04 13:47:53
阅读次数:
61
0 说明 系统:windows 10 python 3.6.7 1 情况 在windows系统下使用pip install PySid2安装PySide2模块的时候出现下面的错误: 分析情况: (1)可能安装的模块并不是完整的模块,存在丢失的情况,因此卸载pyside2之后再重新安装,但是并没有什么 ...
分类:
其他好文 时间:
2020-07-04 13:19:56
阅读次数:
91
package LeetCode_295 import java.util.* /** * 295. Find Median from Data Stream * https://leetcode.com/problems/find-median-from-data-stream/descripti ...
分类:
其他好文 时间:
2020-07-04 01:10:12
阅读次数:
49
问题背景 在ContOS服务器上测试项目 解决方案 谷歌查询 解决步骤 降低matplotlib版本至2.2.2 pip3 install matplotlib==2.2.2 出现新的问题,ImportError: Matplotlib qt-based backends require an ex ...
分类:
编程语言 时间:
2020-07-03 23:38:57
阅读次数:
347
定位界面元素 1、根据元素特征:id,name,class,tag,超链接 写法1: ele=driver.find_element_by_id('kw') 写法2: from selenium.webdriver.common.by import By ele=driver.find_elemen ...
分类:
其他好文 时间:
2020-07-03 23:25:03
阅读次数:
86
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function ...
分类:
其他好文 时间:
2020-07-03 21:49:23
阅读次数:
77
基本建图套路,从单词头向单词尾连一条边,答案就是是否存在一条欧拉路径 #include<bits/stdc++.h> using namespace std; const int N=2e5+10; int p[N]; int din[N],dout[N]; int st[N]; int find( ...