栈是一种基本的数据结构 基本概念 栈(Stack):具有一定操作约束的线性表。 只在一端(栈顶,Top)做插入、删除操作 插入数据:入栈(Push) 删除数据:出栈(Pop) 后入先出:Last In First Out(LIFO) 抽象数据类型描述 类型名称:栈 数据对象集:一个有0个或多个元素的 ...
分类:
其他好文 时间:
2020-07-05 19:36:04
阅读次数:
71
1.创建标签 打标签 git tag V1.0 git tag V1.0 f52c633 # 利用commit id给历史中版本打标签 git tag -a V1.0 -m "version 1.0" # -a 指定标签名 # -m 指定说明性文字 查看标签 git tag # 查看所有标签 git ...
分类:
其他好文 时间:
2020-07-05 19:35:11
阅读次数:
52
1 ansible主机生成ssh密钥对 ssh-keygen 然后全部回车即可 2 指定推送ssh公钥的主机 vi /etc/ansible/hosts [push] 主机IP1 ansible_ssh_user="用户" ansible_ssh_pass="密码" ansible_ssh_port ...
分类:
其他好文 时间:
2020-07-05 13:53:02
阅读次数:
76
We have a wooden plank of the length n units. Some ants are walking on the plank, each ant moves with speed 1 unit per second. Some of the ants move t ...
分类:
其他好文 时间:
2020-07-05 13:12:51
阅读次数:
66
解决方法: 将visual c++ 升级到2019版本。 下载地址:https://support.microsoft.com/zh-cn/help/2977003/the-latest-supported-visual-c-downloads 安装完之后,即可解决该问题。 ...
分类:
其他好文 时间:
2020-07-04 21:07:43
阅读次数:
104
##目录 树 二叉树 二叉树的遍历 总结 参考资料 序 树是学习数据结构的时候非常重要的一个数据结构,尤其是二叉树更为重要。像Java的HashMap 就使用了红黑树,而Mysql的索引就使用到了B+树。恰好最近刷leetcode碰到了不少的有关 二叉树的题目,今天想着写个总结。 1. 树 1.1 ...
分类:
其他好文 时间:
2020-07-04 21:02:58
阅读次数:
61
1.注册一个docker hub 的账户:docker hub 2.先在本地创建拉取一个远程镜像 docker pull ubuntu 3.docker images:查看本地已存在的镜像 4.docker login 命令登录中央仓库。输入账号密码 这是已登录过的 5.docker push xx ...
分类:
系统相关 时间:
2020-07-04 18:39:36
阅读次数:
77
解决办法 Python 3 sudo apt-get install python3 python-dev python3-dev \ build-essential libssl-dev libffi-dev \ libxml2-dev libxslt1-dev zlib1g-dev \ pyth ...
分类:
系统相关 时间:
2020-07-04 17:12:33
阅读次数:
88
tcpdump -i interface -nc 10 ether dst MAC 使用MAC地址进行抓包,加入ether修饰 win表示发送方窗口大小,ack213表示对序列号213的包进行响应Flags表示tcp的标志位信息 . ACK S SYN F FIN P PUSH R RST tcpd ...
分类:
其他好文 时间:
2020-07-04 16:48:32
阅读次数:
74
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