package main import ( "fmt" "strings" "bytes" ) func main(){ s := "Hello, World!" //Count计算字符串sep在s中的非重叠个数:2 //func Count(s, sep string) int fmt.Print ...
分类:
其他好文 时间:
2020-06-30 18:54:26
阅读次数:
58
如何查看oracle当前连接数,会话数 收藏 查看session: select * from v$session where username is not null select username,count(username) from v$session where username is ...
分类:
数据库 时间:
2020-06-30 17:38:44
阅读次数:
85
端午出去玩的时候,老板打电话说公司网站的 HTTPS 过期了,访问不了(见下图),要我立马升级一下。可惜我当时没带电脑,无能为力,可把老板急坏了。 没办法,急就先急着,只能等我有电脑了才能搞。点击高级,可以看到以下信息: z.xxxx.cn 通常会使用加密技术来保护您的信息。Google Chrom ...
分类:
Web程序 时间:
2020-06-30 10:57:54
阅读次数:
72
#自己调自己,默认递归深度是1000,实际测试997次,998会报错 def func(count): print("我是谁" +str(count)) func(count+1) func(1) #修改递归深度,但不一定可以到设置的值 import sys sys.setrecursionlimi ...
分类:
编程语言 时间:
2020-06-30 00:48:58
阅读次数:
89
一、技术总结 分三种情况: 当 二、参考代码 #include<iostream> using namespace std; int main(){ int n, a = 1, ans = 0; int left, now, right; cin >> n; while(n / a != 0){ l ...
分类:
其他好文 时间:
2020-06-29 23:08:00
阅读次数:
93
第10课 分组数据 10.1 数据分组 使用分组可以将数据分为多个逻辑组,对每个组进行聚集计算。 10.2 创建分组 分组是使用SELECT语句的GROUP BY子句建立的。 SELECT vend_id, COUNT(*) AS num_prods FROM Products GROUP BY v ...
分类:
其他好文 时间:
2020-06-29 22:51:28
阅读次数:
39
一、nl命令 1、nl命令在linux系统中用来计算文件中行号 -b :指定行号指定的方式,主要有两种: -b a :表示不论是否为空行,也同样列出行号(类似 cat -n); -b t :如果有空行,空的那一行不要列出行号(默认值); -n :列出行号表示的方法,主要有三种: -n ln :行号在 ...
分类:
系统相关 时间:
2020-06-29 20:19:34
阅读次数:
109
Given an integer n. Each number from 1 to n is grouped according to the sum of its digits. Return how many groups have the largest size. 对1-n的数分组,分组规则 ...
分类:
其他好文 时间:
2020-06-29 20:18:12
阅读次数:
73
关系数据库的注释 -- 单行注释 /* 多行注释 */ 数据类型 数值 整数 只能保存整数,如果是小数,则自动四舍五入取整。 mediumint smallint tinyint(6) zerofill int(8) bigint decimal(8,0) 小数实型 float(p,s) numer ...
分类:
数据库 时间:
2020-06-29 20:06:55
阅读次数:
70
问题: 给定由0,1构成的数组,求由1构成的(各种长度边长的)正方形的总个数有多少。 Example 1: Input: matrix = [ [0,1,1,1], [1,1,1,1], [0,1,1,1] ] Output: 15 Explanation: There are 10 squares ...
分类:
其他好文 时间:
2020-06-29 20:05:12
阅读次数:
61