首先,数组和集合的区别: 数组是大小固定的 集合可以存储和操作数目不固定的一组数据,集合只能存放引用类型的的数据,不能存放基本数据类型 特性 List 允许重复 有序 继承自Connection Set 不允许重复 无序 继承自Connection Map 键值对 区别与List和Set,既没有继承 ...
分类:
编程语言 时间:
2020-07-25 11:30:48
阅读次数:
78
Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif ...
分类:
其他好文 时间:
2020-07-25 09:35:28
阅读次数:
71
【原题】 Description Rain has pummeled the cows' field, a rectangular grid of R rows and C columns (1 <= R <= 50, 1 <= C <= 50). While good for the grass, ...
分类:
其他好文 时间:
2020-07-24 22:06:12
阅读次数:
92
docker 容器使用 systemctl 命令是报错 看了许多解决方案,但是对于新手来说并不友好,不是特别清楚 报错内容: System has not been booted with systemd as init system (PID 1). Can't operate. Failed t ...
分类:
其他好文 时间:
2020-07-24 16:18:05
阅读次数:
82
Xenia lives in a city that has n houses built along the main ringroad. The ringroad houses are numbered 1 through n in the clockwise order. The ringro ...
分类:
其他好文 时间:
2020-07-22 16:21:56
阅读次数:
74
一、Connection接口 该接口代表Java程序和数据的连接,只有获取该连接对象,才能访问数据库来操作数据表 常用方法: 方法 说明 creatStatement() 创建并返回一个Statement实例,通常在执行无参数SQL语句时创建该实例 prepareStatement() 创建并返回一 ...
分类:
编程语言 时间:
2020-07-22 01:39:29
阅读次数:
66
题目链接 Polycarpus has a ribbon, its length is n. He wants to cut the ribbon in a way that fulfils the following two conditions: After the cutting each r ...
分类:
其他好文 时间:
2020-07-21 21:35:20
阅读次数:
72
日志里打印: 10:39:48.962 [Druid-ConnectionPool-Create-1315749361] [] [] ERROR c.alibaba.druid.pool.DruidDataSource - create connection error com.mysql.jdbc ...
分类:
数据库 时间:
2020-07-21 14:14:30
阅读次数:
177
Python访问MySQL的步骤 创建connection连接,连接数据库 获取cursor游标对象 执行SQL语句 关闭cursor游标对象 关闭connection连接 import pymysql user = input("username:") pwd = input("password: ...
分类:
数据库 时间:
2020-07-21 10:02:08
阅读次数:
87
[root@node3 docker]# docker pull gcr.io/google_containers/pause-amd64:3.1 Error response from daemon: Get https://gcr.io/v2/: x509: certificate has ex ...
分类:
其他好文 时间:
2020-07-21 09:49:14
阅读次数:
83