1.什么是栈 栈是 OI 中常用的一种线性数据结构,栈的修改是按照后进先出的原则进行的,因此栈通常被称为是后进先出(last in first out)表,简称 LIFO 表。 2.基本操作 1.初始化 2.判空 3.求栈中实际元素个数 4.进栈 5.出栈 6.取栈顶元素 此处只给出了其中三步骤 3 ...
分类:
其他好文 时间:
2021-03-01 12:51:40
阅读次数:
0
######cut -d 指定分隔符 -f 指定列数 1,2,3 [root@rongbiz002 26]# awk '{print $1}' /www/wwwlogs/c2p.rongbiz.com-access_log|head -n5 |cut -d '.' -f 1,2,3 112.64.5 ...
分类:
系统相关 时间:
2021-02-27 13:40:48
阅读次数:
0
linux crontab报以下错误解决 [root@china ~]# crontab -l 拒绝权限You (root) are not allowed to access to (crontab) because of pam configuration. 解决: 1.查看定时任务的日志/va ...
分类:
数据库 时间:
2021-02-27 13:40:22
阅读次数:
0
结构变量的声明和初始化 #include <cstdio> int main() { struct { int age; int height; } x, y = {29, 180}; // 结构的成员在内存中按照声明的顺序存储 x.age = 30; x.height = 170; return ...
分类:
编程语言 时间:
2021-02-27 13:32:58
阅读次数:
0
//父类 class Person { constructor(name, age) { this.name = name this.age = age } printInfo() { console.log(this.name) console.log(this.age) } } //字类 cla ...
分类:
其他好文 时间:
2021-02-27 13:29:00
阅读次数:
0
array_fill — 用给定的值填充数组 说明 array_fill ( int $start_index , int $count , mixed $value ) : array 用 value 参数的值填充 count 个元素到数组, 开始键名由 start_index 参数指定。 参数 ...
分类:
Web程序 时间:
2021-02-27 13:28:45
阅读次数:
0
2021-02-26 22:54:13.146272: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1406] Created TensorFlow device (/job:localhost/replica:0/task:0/device ...
分类:
其他好文 时间:
2021-02-27 13:21:07
阅读次数:
0
运算符 Java语言支持如下运算符: 算术运算符: +, -, *, /, %(取余,模运算), ++, -- 赋值运算符: = 关系运算符: > , <, >= , ?, ==(Java中的等于使用两个符号判断的), !=(不等于), instanceof 逻辑运算符: &&(与), ||(或), ...
分类:
编程语言 时间:
2021-02-27 13:16:43
阅读次数:
0
同一个nginx配置文件,请求不同的域名可以指定对应的目录 nginx配置 cat long.conf server { listen 80; server_name a.com b.com c.com; location / { root /home/long/$host/; index inde ...
分类:
其他好文 时间:
2021-02-27 13:10:39
阅读次数:
0
我们说 Redis 相对于 Memcache 等其他的缓存产品,有一个比较明显的优势就是 Redis 不仅仅支持简单的key-value类型的数据,同时还提供list,set,zset,hash等数据结构的存储。本篇博客我们就将介绍这些数据类型的详细使用以及顺带介绍Redis系统的相关命令用法。 P ...
分类:
其他好文 时间:
2021-02-27 13:05:26
阅读次数:
0