题目描述 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that eac ...
分类:
其他好文 时间:
2021-01-13 11:07:09
阅读次数:
0
字符串的正则方法有:match()、replace()、search()、split() 正则对象的方法有:exec()、test() 正则方法讲解 match() 功能:使用正则表达式模式对字符串执行查找,并将包含查找的结果作为数组返回函数格式:stringObj.match(rgExp) str ...
分类:
其他好文 时间:
2021-01-13 11:04:50
阅读次数:
0
前言 pandas中包含的数据结构共有三种: 1、Series 2、DataFrame 3、Time-series 其中Series和DataFrame是两种常见的数据结构,Time-series为时间序列,这里暂且不去详细讲解。 一、Series Series是一维数组,与Numpy中的一维arr ...
分类:
其他好文 时间:
2021-01-13 11:03:49
阅读次数:
0
JS方法 var xiaoming = { name: '小明', birth: 1990, age: function () { var y = new Date().getFullYear(); return y - this.birth; }};?xiaoming.age; // functi ...
分类:
Web程序 时间:
2021-01-13 11:01:06
阅读次数:
0
准备4台主机,其中一台装ansible,其余三台分别部署apache、mysql、php,实现lamp架构 主控机ip:192.168.170.20 wang ansible 受控机ip:192.168.170.134 apache apache 192.168.170.135 mysql mysq ...
分类:
其他好文 时间:
2021-01-13 10:47:52
阅读次数:
0
str_shuffle() 随机打乱一个字符串。 string str_shuffle ( string $str ) 参数描述 str 输入字符串。返回值:返回打乱后的字符串。实例: <?php $str = 'abcdef'; $shuffled = str_shuffle($str); // ...
分类:
Web程序 时间:
2021-01-13 10:40:59
阅读次数:
0
函数泛型 function join<T, P>(first: T, second: P) { return `${first}${second}`; } // 泛型虽然可以类型推断,但是还是建议明确写明类型。 join < number, string > (1, "2"); // 数组的形式 / ...
分类:
其他好文 时间:
2021-01-13 10:34:37
阅读次数:
0
###链接 调了好久。。。 我平常写平衡树时 \(push\) \(tag\) 的操作都习惯把 \(rev\) 数组清零,但在 \(LCT\) 中不行,因为 \(rev\) 储存了节点间的父子关系,直接清零会改变树的结构。 \(\frak{code}\) #include<bits/stdc++.h ...
分类:
其他好文 时间:
2021-01-12 11:26:50
阅读次数:
0
Laravel Package for Matching Engine 快速开始 github地址 安装: composer require sting_bo/mengine 复制配置文件: php artisan vendor:publish 依赖 predis 号外 已经出Golang微服务撮合 ...
分类:
Web程序 时间:
2021-01-12 11:24:44
阅读次数:
0
GET方法 从服务器获取数据 参数和值是在请求的URL中发送的: /test/demo_form.php?name1=value1&name2=value2 POST方法 向服务器提交数据 参数和值是在请求的HTTP消息主体中发送的: POST /test/demo_form.php HTTP/1. ...
分类:
Web程序 时间:
2021-01-12 11:21:51
阅读次数:
0