pycharm安装第三方库失败 <I>file选择 settings <II>选择project Interpreter <III>选择这个 Manage Repositories <IV>更改下载源,点+,新增 可以将原来的 下载源 删除 默认 https://pypi.python.org/si ...
分类:
其他好文 时间:
2019-12-15 00:38:11
阅读次数:
697
Path的两种初始化(应该还有别的方式) Path file = new File(path).toPath(); Paths.get 判断是文件、是目录 Files.isRegularFile(file) Files.isDirectory(file) javadoc说,还有既不是文件也不是目录的 ...
分类:
编程语言 时间:
2019-12-13 23:57:58
阅读次数:
333
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2019-12-13 23:28:11
阅读次数:
78
1.设置数据库为严格模式: 2.数据准备 # 创建一张部门表 create table emp( id int not null unique auto_increment, name varchar(20) not null, sex enum('male','female') not null ...
分类:
数据库 时间:
2019-12-13 21:14:50
阅读次数:
91
描述 你是一个专业的小偷,计划偷窃沿街的房屋,每间房内都藏有一定的现金。这个地方所有的房屋都围成一圈,这意味着第一个房屋和最后一个房屋是紧挨着的。同时,相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上被小偷闯入,系统会自动报警。 给定一个代表每个房屋存放金额的非负整数数组,计算你在不触 ...
分类:
其他好文 时间:
2019-12-13 19:44:26
阅读次数:
81
1.外键: 用来建立两张表之间的关系 - 一对多 - 多对多 - 一对一 研究表与表之间的关系: 1.定义一张 员工部门表 id, name, gender, dep_name, dep_desc - 将所有数据存放在一张表中的弊端: 1.结构不清晰 > 不致命 2.浪费空间 > 不致命 3.可扩展 ...
分类:
数据库 时间:
2019-12-12 19:42:42
阅读次数:
131
Porsche PIWIS III covers Porsche Cars till 2018 year and instead of Piwis tester II. Porsche PIWIS III (PST3) is available with Lenovo T440P version a ...
分类:
其他好文 时间:
2019-12-11 21:48:29
阅读次数:
84
Porsche PIWIS III covers Porsche Cars till 2018 year and instead of Piwis tester II. Porsche PIWIS III (PST3) is available with Lenovo T440P version a ...
分类:
其他好文 时间:
2019-12-11 21:00:15
阅读次数:
83
81. Search in Rotated Sorted Array II 如果中间的数小于最右边的数,则右半段是有序的,若中间数大于最右边数,则左半段是有序的。而如果可以有重复值,就会出现来面两种情况,[3 1 1] 和 [1 1 3 1],对于这两种情况中间值等于最右值时,目标值3既可以在左边又 ...
分类:
其他好文 时间:
2019-12-11 13:14:34
阅读次数:
92
环形链表 题目来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/linked-list-cycle-ii 目前考虑到两种解法,但都需要辅助空间, 第一种 O(n) 第二种 O(1) 第一种 借助辅助字典进行判断 将走过的节点都记录在字典中,通过查询 ...
分类:
编程语言 时间:
2019-12-09 12:16:45
阅读次数:
75