MySQL数据库中,常用的数据类型 类型名称 说明 int(integer) 整数类型 double 小数类型 decimal(m,d) 指定整数位与小数位长度的小数类型 date 日期类型,格式为yyyy-MM-dd,包含年月日,不包含时分秒 datetime 日期类型,格式为yyyy-MM-dd ...
分类:
数据库 时间:
2020-11-27 10:55:23
阅读次数:
13
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes conta ...
分类:
其他好文 时间:
2020-11-26 15:14:07
阅读次数:
5
非商业,LeetCode链接附上: https://leetcode-cn.com/problems/find-lucky-integer-in-an-array/ 进入正题。 题目: 在整数数组中,如果一个整数的出现频次和它的数值大小相等,我们就称这个整数为「幸运数」。 给你一个整数数组 arr, ...
分类:
编程语言 时间:
2020-11-26 15:13:13
阅读次数:
5
Delphi TWebBrowser[6] 获取网页所有链接(元素) var elem: IHTMLElement; coll: IHTMLElementCollection; i: integer; url, title: string; begin coll := (WebBrowser1.Do ...
public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历, ...
分类:
编程语言 时间:
2020-11-25 12:43:29
阅读次数:
8
漫画:什么是字典序算法?点击上方“程序员小灰”,选择“置顶公众号”有趣有内涵的文章第一时间送达!—————第二天—————算法题目:给定一个正整数,实现一个方法来求出离该整数最近的大于自身的“换位数”。什么是换位数呢?就是把一个整数各个数位的数字进行全排列,从而得到新的整数。例如53241和23541。小灰也不知道这种经过换位的整数应该如何称呼,所以姑且称其为“换位数”。题目要求写一个方法来寻找最
分类:
编程语言 时间:
2020-11-20 11:21:39
阅读次数:
5
思路:函数先计算数值加减乘除,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
import jieba txt = open("D:\\西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) # 使用精确模式对文本进行分词 counts = {} # 通过键值对的形式存储词语及其出现的次数 for wor ...
分类:
其他好文 时间:
2020-11-19 12:43:23
阅读次数:
12
1 怎么new出来一个ThreadLocal 1 private ThreadLocal<Integer> num=new ThreadLocal<Integer>(){ 2 public Integer initialValue(){ 3 return 0; 4 } 5 }; 2 实现 initi ...
分类:
其他好文 时间:
2020-11-17 12:50:01
阅读次数:
8
1.Set集合 1.1Set集合概述和特点【应用】 可以去除重复 存取顺序不一致 没有带索引的方法,所以不能使用普通for循环遍历,也不能通过索引来获取,删除Set集合里面的元素 1.2Set集合的使用【应用】 存储字符串并遍历 package com.itheima.myset; import j ...
分类:
其他好文 时间:
2020-11-17 12:49:44
阅读次数:
7