<head> <meta charset="UTF-8"> <title></title> <style> #parent { border: 1px solid blueviolet; } #childone { float: left; width: 200px; height: 400px; ...
分类:
其他好文 时间:
2020-07-01 12:25:25
阅读次数:
50
方式一 以流的形式上传图片直接返回路径,这样写: 好处:方便处理存取数据返回路径 不好的地方:可能冗余,上传的文件后面并未使用 1.用koa-body中间件 注:如果已经使用了koa-bodyParser中间件,请remove此中间件,koa-body可以代替koa-bodyParser 在app. ...
分类:
Web程序 时间:
2020-07-01 12:19:47
阅读次数:
100
ForkJoin框架详解 什么是Fork/Join框架 提供一个可以用于并行执行任务的框架. 是把一个大任务分割成若干个小任务,最终汇总小任务结果后得到大任务结果的框架. Fork:将大任务切分成若干个子任务并行的执行. Join:合并这些子任务的执行结果,最后得到大任务的结果. 工作窃取算法(wo ...
分类:
其他好文 时间:
2020-06-30 22:34:49
阅读次数:
77
/***工具-字符串-转换Sql查询IN中使用的格式*效果:a,b==>‘a‘,‘b‘*@paramstr*@return*/publicStringstrToDbin(Stringstr){returnString.format("‘%s‘",StringUtils.join(str.split(","),"‘,‘"));}/***工具-字符串-转换为Sql查询分组IN格式*解决:Sql中
分类:
数据库 时间:
2020-06-30 19:06:26
阅读次数:
93
/* 动态生成A-Z */function getEN(){ var arr = []; //定义数组 for(var i = 65; i < 91; i++){ arr.push(String.fromCharCode(i)); //ASKLL值对应的字符 } return arr.join(', ...
分类:
其他好文 时间:
2020-06-30 14:24:20
阅读次数:
43
A few weeks ago we introduced the first demonstration of “P4 Runtime”. We invite all members of the networking community to join with us, so that toge ...
分类:
其他好文 时间:
2020-06-30 13:01:44
阅读次数:
51
#每次排除一半的数据,效率高;局限性:必须是有序序列 应用: lst = [11,22,33,44,55,66,77,88,99,123,234,345,456,567,678,789,1111] def binary_search(left, right, n): middle = (left + ...
分类:
编程语言 时间:
2020-06-30 00:47:14
阅读次数:
75
一、技术总结 分三种情况: 当 二、参考代码 #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
import os import shutil import time start_time = time.time() # 需要被复制的文件夹 old_path = r'C:\old_dir' new_path = r'C:\new_dir' all_list = os.listdir(old_p ...
分类:
编程语言 时间:
2020-06-29 22:38:13
阅读次数:
131
布局(layout),指各个元素在网页里如何摆放以形成最终的页面,默认布局是从左到右、从上到下。改变元素的默认布局方式有很多种,浮动(float)就是其中一种。 1. 浮动(float) 浮动类似于word里面文字围绕图片的效果,可设置为向左(left)或向右(right)浮动。 // 元素默认没有 ...
分类:
Web程序 时间:
2020-06-29 21:27:04
阅读次数:
85