思路:函数先计算数值加减乘除,case赋值输出对应的加减乘除#!/bin/bashadd(){add=$[$1+$2]echo"outcome:$1+$2=$add"}minus(){min=$[$1-$2]echo"outcome:$1-$2=$min"}multiply(){mult=$[$1*$2]echo"outcome:$1x$2=$mult"}divide(){div=$[$1/$2]
分类:
系统相关 时间:
2020-11-20 11:18:50
阅读次数:
15
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:
其他好文 时间:
2020-11-13 13:21:44
阅读次数:
33
正则表达式语法1.1字符与字符类学习python中有什么不懂的地方,小编里推荐加小编的09有任何不懂的都可以在里面交流,还有很好的视频教程pdf学习资料,大家一起学习交!1特殊字符:.^$?+*{}以上特殊字符要想使用字面值,必须使用进行转义2字符类包含在[]中的一个或者多个字符被称为字符类,字符类在匹配时如果没有指定量词则只会匹配其中的一个。字符类内可以指定范围,比如[a-zA-Z0-9]表示a
分类:
编程语言 时间:
2020-11-04 19:26:01
阅读次数:
56
1 若有一个档案的类型与权限资料为『-rwxr-xr--』,请说明其意义为何? 2 如果我的目录为底下的样式,请问testgroup这个群组的成员与其他人(others)是否可以进入本目录? drwxr-xr-- 1 test1 testgroup 5238 Jun 19 10:25 groups/ ...
分类:
其他好文 时间:
2020-11-01 21:29:37
阅读次数:
27
本博文来源于https://www.cnblogs.com/00huajiang/p/11015006.html EMC VNX5200/5400 1、创建RAID Groups 1.1 进入EMC VNX5200/5400主界面,依次选择Storage——Storage Pools——RAID G ...
分类:
其他好文 时间:
2020-10-29 10:41:12
阅读次数:
32
前期准备:1、一套k8s集群2、镜像准备3、harbor仓库4、镜像制作文件5、字签证书镜像下载dockerpullelasticsearch:7.6.2dockerpullfilebeat:7.6.2dockerpullkibana:7.6.2因为这边需要用到elasticserach的安全验证功能模块,所以需要对elasticserach和kibana镜像有所修改编辑elasticsearch
分类:
其他好文 时间:
2020-10-21 20:51:22
阅读次数:
19
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha ...
分类:
其他好文 时间:
2020-09-24 00:03:11
阅读次数:
34
通过简单的python脚本,获取指定group的队列长度
分类:
其他好文 时间:
2020-09-23 23:30:54
阅读次数:
69
分治算法的介绍 基本思想:分而治之(Divide and conquer) 模式: 设置一个阈值N0 当问题规模p小于N0时,采用基本子算法 当规模大于N0时,将问题分解再合并 汉诺塔问题 思路: 当片数n=1时:将一片从A移动到C 当片数n>=2时: 将所有片看作两部分,最下面一片为单独一部分, ...
分类:
编程语言 时间:
2020-09-18 00:23:00
阅读次数:
43