基本语法shell的if语法和C语言等高级语言非常相似,唯一需要注意的地方就是shell的if语句对空格方面的要求比较严格(其实shell对所有语法的空格使用都比较严格),如果在需要空格的地方没有打上空格,都会报错。如if[$1x=="ip"x];thenecho"abc";fi中少一个空格都会报错。另外shell的if语句必须以fi作为结尾,不然同样会报错。有else和elif时也一样,需要注意
分类:
系统相关 时间:
2019-03-16 14:11:25
阅读次数:
197
启动后报错内容为: 报错原因:因为dubbo jar包中包含低版本的spring,所以在引入dubbo是需要将spring包排除掉: <dependency> <groupId>com.alibaba</groupId> <artifactId>dubbo</artifactId> <version ...
分类:
其他好文 时间:
2019-03-08 16:27:19
阅读次数:
156
接近年关,最近年结忙的飞起,此为背景,今天运维那边反应日记账凭证打印报错,看了下后台请求发现请求有警告。 查看日志发现报了“并发:OPP响应超时”的警告,这个地方响应超时可能是配置文件中“并发:OPP超时响应”等相关参数的影响,在参数规定的时间内OPP 服务没有及时响应造成的,当然问题的起因可能有深 ...
分类:
其他好文 时间:
2019-03-01 15:38:50
阅读次数:
236
1 class Typed: 2 def __init__(self,key,expected_type): 3 self.key=key 4 self.expected_type=expected_type 5 def __get__(self, instance, owner): 6 print... ...
分类:
其他好文 时间:
2019-02-24 23:04:30
阅读次数:
221
1 #include"iostream" 2 using namespace std; 3 4 bool IsInt(const char **str); 5 bool IsUnsignInt(const char **str); 6 7 bool IsNumeric(const char* str ...
分类:
其他好文 时间:
2019-02-22 10:35:44
阅读次数:
223
代码#AuthorKangtry:name=[1,2,3]print(name[2])print(name[3])#错误信息发生,执行ExpectionexceptExceptionase:#抓取所有错误print("错误信息:",e)结果:3错误信息:listindexoutofrange
分类:
编程语言 时间:
2019-02-21 17:25:31
阅读次数:
155
使用示例:sort -k1,1nr xxxfile 需要指定起始列和结束列,否则可能排序错误 sort命令应用于中文时需要在sort前设置环境变量(以兼容C语言的标准): LC_COLLATE=C 否则sort将忽略文本中的标点符号,将仅有标点符号差异的key看做相同。 使用tab做分隔符: sor ...
分类:
其他好文 时间:
2019-02-11 21:22:36
阅读次数:
244
Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original ar ...
分类:
其他好文 时间:
2019-02-11 10:22:20
阅读次数:
173
1、Advisor(增强器):充当Advice和Pointcut的适配器,类似使用Aspect的@Aspect注解的类(前一章节所述)。一般有advice和pointcut属性。 祖先接口为org.springframework.aop.Advisor,应用中可直接使用org.springframe ...
分类:
编程语言 时间:
2019-02-08 21:33:45
阅读次数:
169
python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence" 解决办法1: 解决办法2: 解决Python中出现的ValueError ...
分类:
编程语言 时间:
2019-02-04 09:01:23
阅读次数:
1261