Paths on the treeProblem Descriptionbobo has a tree, whose vertices are conveniently labeled by 1,2,…,n.** There are m paths on the tree. bobo would l ...
分类:
其他好文 时间:
2020-04-19 18:07:45
阅读次数:
62
一、与字符串的相互转换 1.字符串转变为etree 对象 import lxml.html tree = lxml.html.fromstring(content) # content 字符串对象 2.etree对象转变为字符串 from lxml import etree content = et ...
分类:
其他好文 时间:
2020-04-19 15:13:29
阅读次数:
95
逻辑卷管理器总结 内容概述: 创建逻辑卷 逻辑卷的扩展 逻辑卷的缩减 逻辑卷管理 逻辑卷快照 拆卸更换硬盘 删除逻辑卷 LVM: Logical Volume Manager 可以允许对卷进行方便操作的抽象层,包括重新设定文件系统的大小 允许在多个物理设备间重新组织文件系统 LVM可以弹性的更改LV ...
分类:
其他好文 时间:
2020-04-19 14:59:49
阅读次数:
73
参考博客: https://www.cnblogs.com/wang3680/p/12394053.html 一、首先我们来设置IDEA中类的模板:(IDEA中在创建类时会自动给添加注释) 1、File-->settings-->Editor-->File and Code Templates--> ...
分类:
其他好文 时间:
2020-04-19 14:34:22
阅读次数:
60
因为使用Jupyter Notebook用鼠标选择菜单影响效率,遂将快捷命令记录于此 转自:http://blog.konghy.cn/2017/05/04/jupyter-notebook-hotkeys/ 命令模式快捷键(按 Esc 键开启): 快捷键作用说明 Enter 转入编辑模式 Shif ...
分类:
其他好文 时间:
2020-04-19 10:53:25
阅读次数:
75
本文首发于:https://antoniopeng.com整合Druid数据源引入依赖在pom.xml中引入druid-spring-boot-starter和mysql-connector-java依赖<!--druid-spring-boot-starter--><dependency><groupId>com.alibaba</groupId>
分类:
编程语言 时间:
2020-04-19 09:20:06
阅读次数:
90
1.vi命令使用方法 1)vi命令的基本用法 步骤一: vi oldboy.txt 利用vi命令打开一个文件 步骤二: 输入i 进入编辑模式 步骤三: 编辑文件内容 步骤四: esc 退出编辑模式 步骤五: :wq 保存退出文件 2)vi命令详细使用方法 vi三种命令模式 1.命令模式 命令模式中移 ...
分类:
其他好文 时间:
2020-04-19 00:48:26
阅读次数:
91
文本编辑器:全屏编辑 ①、nano ②、gedit ③、vi,vim 行编辑 sed vim:vim +# 打开时跳第几行,+默认为末尾 插入模式 ESC—> <—i/a/o 命令模式(普通模式) :—> <—ESC 命令行模式(扩展模式) 命令行模式: r 读 r/etc/issue w 存 w临 ...
分类:
系统相关 时间:
2020-04-18 13:59:56
阅读次数:
87
题目连接: https://www.acwing.com/problem/content/1318/ Description 我们称一个长度为 2n 的数列是有趣的,当且仅当该数列满足以下三个条件: 1.它是从 1 到 2n 共 2n 个整数的一个排列 ${ai}$; 2.所有的奇数项满足 $a_1 ...
分类:
其他好文 时间:
2020-04-18 13:35:14
阅读次数:
60
一、pxm.xml中引入mybatis-generator并配置 在build节点下的plugins下添加org.mybatis.generator 示例代码如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven ...
分类:
其他好文 时间:
2020-04-18 13:33:23
阅读次数:
45