题目描述 请实现一个函数用来判断字符串是否表示数值(包括整数和小数)。例如,字符串"+100","5e2","-123","3.1416"和"-1E-16"都表示数值。 但是"12e","1a3.14","1.2.3","+-5"和"12e+4.3"都不是。 1.判断是否有e或者E 2.+或者-号如 ...
分类:
其他好文 时间:
2020-06-15 20:53:24
阅读次数:
44
// FacesContext facesContext = FacesContext.getCurrentInstance();// ExternalContext externalContext = facesContext.getExternalContext();// Map<String, ...
分类:
其他好文 时间:
2020-06-15 15:51:36
阅读次数:
61
导包:activation.jar、mail.jar 1、测试代码:(这里使用的是QQ邮箱主机) package com.canzhen.demo.simple; import javax.activation.DataHandler; import javax.activation.DataSou ...
分类:
编程语言 时间:
2020-06-15 14:21:03
阅读次数:
52
1、首先,检查是否已经安装Homebrew,如果没有安装Homebrew,请先安装 2、使用Homebrew安装命令,在终端输入以下命令 brew install redis 当前默认安装5.0.8版本 3、 如何查看安装redis后的路径及配置文件位置 Homebrew安装的软件会默认在/usr/ ...
分类:
系统相关 时间:
2020-06-14 23:49:02
阅读次数:
112
启动系统,按ESC键,进入GRUB页面,进入到命令行 1. Start up your computer and when you see the Grub screen, do the following: 2. In the Grub menu press the ‘e’ key to edit ...
分类:
编程语言 时间:
2020-06-14 23:42:03
阅读次数:
239
网上摘录常用js片段 时间戳转换为时间 默认为当前时间转换结果 isMs 为时间戳是否为毫秒 链接:https://zhuanlan.zhihu.com/p/143862373 function timestampToTime(timestamp = Date.parse(new Date()), ...
分类:
Web程序 时间:
2020-06-14 23:31:46
阅读次数:
90
Description 给出序列 $a_i$, 求两两之和的异或值 Solution 按位计算计算到第 $k$ 位时,将 $a_i$ 按 $mod \ 2^{k+1}$ 后排序当 $a_i \ mod \ 2^{k+1} + a_j \ mod \ 2^{k+1}\in [2^k, \ 2^{k+1 ...
分类:
其他好文 时间:
2020-06-14 14:56:33
阅读次数:
47
编译安装: 下载:http://nginx.org/download/nginx-1.18.0.tar.gz 解压:tar -zxvf nginx-1.18.0.tar.gz configure: ./configure --prefix=/usr/local/soft/nginx-1.18.0 - ...
分类:
其他好文 时间:
2020-06-14 13:14:28
阅读次数:
63
本来不想写任何关于vim的文章的,无奈我今天又忘记怎么退出vim了,常用命令是ESC,然后:wq(保存并退出),:q!(不保存并强制退出),i进入vim模式。另外还有其它的,我可能都不会用到。。。按ESC键 跳到命令模式,然后: :w 保存文件但不退出vi :w file 将修改另外保存到file中 ...
分类:
系统相关 时间:
2020-06-14 01:32:11
阅读次数:
369
前言: 我们使用springmvc时,每次都要去配置web.xml,spring-mvc.xml,甚至和spring整合时候,还要配置spring.xml。用起来比较麻烦,用过springboot的朋友应该知道,springboot中使用springmvc时候就不会去指定xml。那这样的操作是怎么实 ...
分类:
编程语言 时间:
2020-06-13 21:35:58
阅读次数:
57