Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2020-01-04 14:40:32
阅读次数:
74
Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa ...
分类:
其他好文 时间:
2020-01-04 14:37:44
阅读次数:
69
Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 ...
分类:
其他好文 时间:
2020-01-04 14:37:15
阅读次数:
81
第一课定义列表#列表和元组----序列#序列:是数据元素的集合,数据元素可以是数值、字符串、布尔类型、对象等。#序列的类型:列表和元组#列表:把一组值简单的放在一起的一种方式和数组类似name="Bill"names=["Bill","Mary","John"]values=["Bill",True,False,10,20.5,[1,2,3,4,5]]print(names)#输出结果为:[‘Bi
分类:
编程语言 时间:
2020-01-04 01:41:37
阅读次数:
126
1. 查询 创建数据库、数据表 -- 创建数据库 create database python_test_1 charset=utf8; -- 使用数据库 use python_test_1; -- students表 create table students( id int unsigned p ...
分类:
数据库 时间:
2020-01-04 01:23:40
阅读次数:
98
第7课:列表的基本操作(赋值、删除和分片赋值)#列表的基本操作#赋值、删除列表元素、分片赋值#1.列表元素的赋值values=["Bill","Mary","John"]values[0]="Mike"values[1]=10.4values[-1]="Joe"#values[-5]="abc"#抛出异常print(values)#[‘Mike‘,10.4,‘Joe‘]#删除列表中的元素numbe
分类:
编程语言 时间:
2020-01-03 18:01:29
阅读次数:
110
helm harbor的GitHub地址:https://github.com/goharbor/harbor helm 修改values.yaml文件 创建pvc 验证 ...
分类:
其他好文 时间:
2020-01-03 14:24:05
阅读次数:
110
查看对象的方法,继续控制台输出,如图: hasOwnProperty():返回一个布尔值,指示对象自身属性中是否具有指定的属性(也就是,是否有指定的键)。 isPrototypeOf():用于测试一个对象是否存在于另一个对象的原型链上。 toString():返回一个表示该对象的字符串。 value ...
分类:
Web程序 时间:
2020-01-03 11:58:36
阅读次数:
77
问题简述: 使用servlet与vue-axios进行前后端交互时,设置好了跨域,其后因考虑到用户验证问题,在前端请求时加入了请求头如下 axios.defaults.headers.common['token'] = sessionStorage.getItem("token"); 其后,浏览器便 ...
分类:
移动开发 时间:
2020-01-02 22:42:20
阅读次数:
217
数据库复习(粗略整理) 对数据的操作 一、添加 方法1:insert into 表名(表列名1,表列名2,表列名3,...) values(表列名1的值,表列名2的值,表列名3的值,......)一一表名次序和值次序相对应 insert into student(student_id,student ...
分类:
数据库 时间:
2020-01-01 21:04:05
阅读次数:
102