tar解压提示 gzip: stdin: not in gzip format 原因: 1、下载的压缩包可能有问题,确保下载的压缩包是正常的,应该就不会出现这个情况 2、 压缩包没有用gzip格式压缩,去掉 -zxvf 里面的 z 即可 ...
分类:
其他好文 时间:
2020-06-24 15:41:23
阅读次数:
120
前提条件 时间复杂度:O(n) 空间复杂度:O(1) 思路 若数组长度为偶数,那么其中奇数元素和偶数元素的个数相等;若数组长度为奇数,那么其中奇数元素和偶数元素的个数相差 1;我们先校验奇数元素个数和偶数元素个数是否合法,若不合法,则直接抛出异常; 根据数组中奇数元素的个数和偶数元素的个数的大小来判 ...
分类:
编程语言 时间:
2020-06-24 00:43:24
阅读次数:
62
【运行环境】 Eclipse, IDEA JDK1.7(JDK1.8) Tomcat7(Tomcat8) 【技术栈】 JAVA, JSP, SSM, JQUERY, JQUERY EASYUI, MYSQL, HTML, CSS, JAVASCRIPT 项目源码 【项目包含内容】 【文档包含内容】 ...
分类:
数据库 时间:
2020-06-23 22:54:35
阅读次数:
199
python 内置首字母大写的方法title(),可以满足一般的需求 ,但是title()方法 会把除了首字母之外的字母变为小写 ,这时候就需要自定义首字母大写的方法了 1 # 首字母大写 2 def firstUp(title): 3 new_str = '{}{}'.format(title[0 ...
分类:
编程语言 时间:
2020-06-23 10:19:46
阅读次数:
59
与收集参数相反,这里用*和**分配参数 def add(x, y): return x + y 使用*分配元组 params = (1, 2) >>> add(*params) 3 使用**分配字典中的值分配给关键字参数 def hello_3(greeting='Hello', name='wor ...
分类:
编程语言 时间:
2020-06-22 23:10:44
阅读次数:
56
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd"); System.out.println(dtf.format(LocalDateTime.now())); System.out.println(dtf.format(Lo ...
分类:
编程语言 时间:
2020-06-22 12:49:40
阅读次数:
41
1.1. 跳转新页面并传值->新页面编辑、查看详情 l HyperLinkField:DataNavigateUrlFields、DataNavigeteUrlFormatString l HyperLink:NavigateUrl='<%# "新地址?id=" + Eval("主键列")%>' l ...
分类:
其他好文 时间:
2020-06-22 01:10:18
阅读次数:
67
1基于reverseproxy实现的反向代理例子packagemainimport("log""net/http""net/http/httputil""net/url")funcmain(){//地址重写实例//http://127.0.0.1:8888/test?id=1=》http://127.0.0.1:8081/reverse/test?id=1rs1:="http://127.0.0.
分类:
其他好文 时间:
2020-06-21 18:16:09
阅读次数:
61
题目:Folding 网址:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=0&problem=4505&mosmsg=Submission+received+w ...
分类:
其他好文 时间:
2020-06-21 14:12:21
阅读次数:
55
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating ...
分类:
其他好文 时间:
2020-06-21 10:09:51
阅读次数:
35