空表示表格没有任何输出,null表示输出为null。 #方法一select sum(num)from( select num from my_numbers group by num having count(num)=1 order by num desc limit 0,1); #方法二sele ...
分类:
其他好文 时间:
2021-06-05 18:19:31
阅读次数:
0
##一、API ###概述 ##二、Scanner类 ###1、什么是Scanner类 ###2、Scanner使用步骤 ###3、匿名对象 ####概念 ####应用场景 ##三、Random类 ###1、什么是Random类 ###2、Random类使用步骤 ####注意 nexInt(n)范围 ...
分类:
编程语言 时间:
2021-06-05 18:13:15
阅读次数:
0
picoctf_2018_echo_back 题目分析 简单的格式化字符串,修改got@pus为main函数地址制造循环即可: 先制造循环 修改printf@got为system@plt 输入/bin/sh获取shell 最终EXP from pwn import * sh:tube = proce ...
分类:
其他好文 时间:
2021-06-05 18:01:10
阅读次数:
0
因为某种应用场景我需要将特定目录下的txt文件进行清理,核心命令如下: find 目录 -name '*.txt' -type f -print -exec rm -rf {} \; 例如: find /home/tech/data_log -name '*.txt' -type f -print ...
分类:
系统相关 时间:
2021-06-05 17:53:08
阅读次数:
0
自定义 local 对象 (实现并发处理请求) 1.思考及需求 要实现并发效果, 每一个请求进来的时候我们都开启一个进程, 这显然是不合理的, 于是就可以使用线程 如果我们的需求是每个线程都对变量 num 进行设值, 并打印其线程号, 其效果如下 : from threading import Th ...
分类:
其他好文 时间:
2021-06-05 17:52:29
阅读次数:
0
一.偏函数 (partial) 1.partial 的作用 当函数的参数个数太多,需要简化时,使用functools.partial可以创建一个新的函数,这个新函数可以固定住原函数的部分参数,从而在调用时更简单 2.示例 partial 的第一个参数是原函数, 后面是原函数的参数 from func ...
分类:
其他好文 时间:
2021-06-05 17:51:40
阅读次数:
0
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Data.SqlClient; 6 using System. ...
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Data.SqlClient; 6 using System. ...
分类:
其他好文 时间:
2021-06-05 17:38:06
阅读次数:
0
? 1 训练时 model = Word2Vec(x, size=250, window=5, min_count=5, workers=12, iter=10, sg=1) 这句代码一直报错 查了发现 size和iter依然是时代的眼泪了。改成下面 model = Word2Vec(x, vect ...
分类:
其他好文 时间:
2021-06-04 19:54:36
阅读次数:
0
还是老规矩,QScopedPointer概念性的东西我就不赘述了,网上百度一抓一大把。 这里主要用实际的例子来说明一下QScopedPointer这个智能指针中data()和take()的用法,这里面是有坑的。 我们先来说一下data()和take()分别表示的是什么意思? 首先你可以把QScope ...
分类:
其他好文 时间:
2021-06-04 19:48:15
阅读次数:
0