什么是回形字符串:可以对称的字符串,例如aaabaaa,aabbbbaa function run(input){ if(typeof input !== 'string') return false; return input.split('').reverse().join('') input ...
分类:
其他好文 时间:
2020-06-04 15:22:52
阅读次数:
71
题目: 思路: 1、递归处理子问题,判断某个树是否对称只需要判断它的左右子树是否对称,而判读两个树是否对称需要判断: 根结点是否相等 && A.left和B.right是否对称 && A.right和B.left是否对称。判断子树是否对称变成了相同的子问题,递归处理。注意这里的核心是把一颗树是否对称 ...
分类:
其他好文 时间:
2020-06-04 13:58:10
阅读次数:
41
join_room接口需要用到creat_room接口中的返回值room_id作为参数 creat_room返回值 join_room传参 第一步: (1)creat_room请求: 返回值为: (2)添加JSON Extractor提取creat_room的返回值room_id。因为是返回值且是j ...
分类:
其他好文 时间:
2020-06-04 13:53:43
阅读次数:
75
1、面包屑,页面上方使用 1 <el-row style> 2 <el-breadcrumb 3 separator-class="el-icon-arrow-right" 4 style=" 5 margin-left: 2%; 6 vertical-align: middle; 7 height ...
分类:
其他好文 时间:
2020-06-04 10:44:38
阅读次数:
61
想要将某文件夹下面的所有.txt文件内容放到一个.txt中,使用txt的写入写出就可以了,代码如下: import os import sys # 获取当前路径 jupyter_path = os.getcwd() # 获取txt文件夹路径 in_path = os.path.join(jupyte ...
分类:
其他好文 时间:
2020-06-04 10:44:26
阅读次数:
62
1、JOIN JOIN 就是连接另一个表来根据共同的内容查看两个表的列 主要分为LEFT JOIN INNER JOIN和 RIGHT JOIN 三种 七种join连接 来具体分析一下:看代码 表1:学生表 表2:成绩表 表3:科目表 --现在我们想要查询学生ID 学生名字 科目ID,科目名字和分数 ...
分类:
数据库 时间:
2020-06-03 20:31:44
阅读次数:
73
1、加载库 import os, sys, re import numpy as np import pandas as pd import matplotlib.pyplot as plt 2、读取数据 path = r'E:\数据集' data_file = os.path.join(path, ...
分类:
编程语言 时间:
2020-06-03 01:03:23
阅读次数:
125
盒模型属性 margin外边距(top,right,bottom,left)border边框(top,right,bottom,left)padding内边距(top,right,bottom,left)content内容区(width,height)margin,border,padding值的书 ...
分类:
Web程序 时间:
2020-06-03 00:28:53
阅读次数:
66
1.数组去重 var arr = [1,2,3,3,1,4]; [...new Set(arr)]; // [1, 2, 3, 4] Array.from(new Set(arr)); // [1, 2, 3, 4] [...new Set('ababbc')].join(''); // "abc" ...
分类:
其他好文 时间:
2020-06-02 18:40:09
阅读次数:
734
1. 全局安装 npm i typescript -g npm i tslint -g 2. 项目初始化 npm init // 生成package.json tsc --init // 生成tsconfig.json tsconfig.json文件内容(对于其中每一项的含义,后面补充) 3.项目中 ...
分类:
其他好文 时间:
2020-06-02 17:23:56
阅读次数:
172