#!/bin/bash #检测whois命令是否存在,不存在则安装jwhois包is_install_whois(){ which whois &> /dev/null if [ $? -ne 0 ];then yum install -y jwhois fi}is_install_whois#定义 ...
分类:
其他好文 时间:
2021-03-18 14:10:30
阅读次数:
0
window.onload = function(){ var pageNo = 1, //页码 pageSize = 50, //每一页的条数 str =""; getData(pageNo); window.onscroll = function(){ //1、滚动条与顶部高度 var scro ...
分类:
Web程序 时间:
2021-03-18 14:07:57
阅读次数:
0
js实现: <script> uploadfiles(2655,"files"); function uploadfiles(ids,folder) { $(function(){ var $list = $("#the_"+ids); $btn = $("#Btn_"+ids); var uplo ...
分类:
Web程序 时间:
2021-03-18 13:58:53
阅读次数:
0
在一个虚拟机运行apt-get update警告 W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner amd64 Packages (/var/lib/apt/lists/archi ...
分类:
其他好文 时间:
2021-03-17 15:08:43
阅读次数:
0
list 去重扩展: public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) { HashSet<T ...
Remove Duplicates from Sorted List 2 删除排序链表中的重复元素 Given the head of a sorted linked list, delete all nodes that have duplicate numbers, leaving only d ...
分类:
编程语言 时间:
2021-03-17 15:07:16
阅读次数:
0
示例1: """ 编写一个程序 用户可以输入用户名和密码 用户有三次机会 登录成功可以进行相应的操作 输入Q退出系统 """ name_list = ["zhangdada","wangxiaoxiao","lizhongzhong"] pwd_list = ["123","456","789"] ...
分类:
编程语言 时间:
2021-03-17 14:58:52
阅读次数:
0
一、pagehelper介绍 pagehepler是一款可以帮助我们快速实现分页的插件,总之就是比传统的分页方式方便太多。话不多说,直接上手pagehelper插件的使用。 二、需要导入的依赖 ``<dependency> ````<groupId>com.github.pagehelper</gr ...
分类:
其他好文 时间:
2021-03-17 14:51:37
阅读次数:
0
class Solution { public boolean wordBreak(String s, List<String> wordDict) { return isContain(s, wordDict); } Map<String,Boolean> map = new HashMap<>( ...
分类:
其他好文 时间:
2021-03-17 14:50:42
阅读次数:
0
yml文件 基本用法 //传统xml配置: <server> <port>8081<port> </server> //yaml配置: server: prot: 8080 //行内写法 student: {name: qinjiang,age: 3} //数组( List、set )用 - 值表示 ...
分类:
编程语言 时间:
2021-03-17 14:48:05
阅读次数:
0