链表——增删改查 class Node(): def __init__(self, item): self.item = item self.next = None class Link(): def __init__(self): #构造一个空链表 #head存储只能是空或者第一个节点的地址 se ...
分类:
编程语言 时间:
2020-06-25 10:03:37
阅读次数:
83
git的选项和最常用的子命令 1、启动工作区(另请参阅:git帮助教程) clone: 将存储库克隆到新目录 (克隆) init: 创建空的Git存储库或重新初始化现有的Git存储库 (初始化) 2、处理当前更改(另请参见:git-help-daily) add: 向索引添加文件内容 (添加) mv ...
分类:
其他好文 时间:
2020-06-25 09:55:06
阅读次数:
109
方法1:迭代 m、n为两个有序链表的长度 时间复杂度:O(m+n) 空间复杂度:O(1) class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def ...
分类:
其他好文 时间:
2020-06-25 09:54:49
阅读次数:
43
这样在输入过一次密码之后,以后就不需要每次都输入密码了。touch ~/.git-credentials,git config --global credential.helper store ...
分类:
其他好文 时间:
2020-06-25 09:45:07
阅读次数:
71
初始化 package.json npm init -y 初始化 tsconfig.json tsc --init 安装 parcel cnpm install parcel@next -D tsconfig.json 找到配置 "outDir": "./dist", "rootDir": "./s ...
分类:
其他好文 时间:
2020-06-25 09:18:46
阅读次数:
105
二叉树广度优先遍历:一层一层 二叉树深度优先遍历:前序(根左右)、中序(左根右)、后序(左右根) class Node(): def __init__(self, item): self.item = item self.left = None self.right = None class Tre ...
分类:
其他好文 时间:
2020-06-24 23:53:15
阅读次数:
105
一、Git常用命令 1、创建版本库 git clone -b 分支名 http的git地址 //Git克隆指定分支 git clone -b 分支名 http的git地址 c:/User/zp/dev指定目录 //Git克隆指定分支、指定目录git init ...
分类:
其他好文 时间:
2020-06-24 23:42:56
阅读次数:
52
一、删除新闻 1.1 Controller层 1.2 Service层 二、新闻的修改 2.1 Controller层 2.2 Service层 三、新闻的添加 3.1 Controller层 3.2 Service层 四、新闻的查看 4.1 Controller层 4.2 Service层 五、效 ...
分类:
Web程序 时间:
2020-06-24 23:41:33
阅读次数:
68
1. 安装uiautomator2 pip install uiautomator2 init 1)上边的命令就是直接下载并且安装,所以安装之前不需要下载安装包的; 2)安装的过程中,提示pip版本和现在的版本不匹配,报错,这时候需要升级 pip的版本 ,命令为 python -m pip inst ...
分类:
其他好文 时间:
2020-06-24 23:33:22
阅读次数:
68
Git 使用(一) - git init 初始化仓库 - git status 仓库状态 - git add filename 单个文件加入暂存 - git add. 全部加入暂存 - git commit -m <message> 添加描述 - git log 查看日志 - git reset I ...
分类:
其他好文 时间:
2020-06-24 23:31:02
阅读次数:
72