背景: 在下载oss视频时由于 oss后台进行优化 无法一次性下载完整个较大的视频 所以需要分段下载。 直接下载会导致 Premature end of Content-Length delimited message body (expected 异常。 直接贴代码: package com.my ...
分类:
编程语言 时间:
2020-05-19 14:49:43
阅读次数:
104
Siamese network 孪生神经网络--一个简单神奇的结构 mountain blue 机器学习爱好者 名字的由来 Siamese和Chinese有点像。Siam是古时候泰国的称呼,中文译作暹罗。Siamese也就是“暹罗”人或“泰国”人。Siamese在英语中是“孪生”、“连体”的意思,这 ...
分类:
Web程序 时间:
2020-05-19 14:48:23
阅读次数:
136
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <ctype.h> 4 #include <stdbool.h> 5 #define MAXSIZE 7 6 typedef int ElemType; 7 typedef struct Or ...
分类:
编程语言 时间:
2020-05-19 14:32:17
阅读次数:
55
#include <iostream>#include <string.h>using namespace std; struct student{ int age; char name[10]; char sex[5]; student *next; }; //链表的增删查改 增; int mai ...
分类:
其他好文 时间:
2020-05-19 12:33:02
阅读次数:
51
[TOC] 官方文档 启动pyppteer 切图 获取响应头,响应头状态,cookies 获取当前页面标题 获取页面html 第一种:获取整个页面html 第二种:只获取文本 注入JS,控制上下滚动 选择器 获取元素内部的文本、属性 get_html 模拟输入,鼠标点击 taobao登录 鼠标事件 ...
分类:
其他好文 时间:
2020-05-19 12:28:48
阅读次数:
79
1 package test_16_2; 2 3 public class Outter { 4 5 public Outter() { 6 7 } 8 9 public Outter(int i) { 10 11 this.i = i; 12 } 13 14 private int i = 1; ...
分类:
编程语言 时间:
2020-05-19 01:04:41
阅读次数:
56
热部署 (方法一) 1. 查看原编译参数 2. 预编译/编译/安装 3.直接升级 (方法二) 1. 编译安装nginx 1.16.1 2. 查看升级之前的nginx版本,同时获取旧nginx版本的编译参数 3. 编译nginx 1.18.0(只编译不安装) 4. 备份旧版本的nginx的执行程序 5 ...
分类:
其他好文 时间:
2020-05-19 00:52:28
阅读次数:
58
1 package test_16_3; 2 3 public interface Inter { 4 5 String show(); 6 } 1 package test_16_3; 2 3 public class Outter { 4 5 public Inter inter() { 6 r ...
分类:
编程语言 时间:
2020-05-19 00:24:56
阅读次数:
61
SOJ 3021: Quad Tiling 题意:给出$4\times N$的矩形以及尺寸为$2\times 1$的骨牌,求解该矩形能被骨牌覆盖的种数。 分析:起初我自己一直尝试推导出一个递推式,但是一直没有成功。后来看了网上别人给的递推式:$f(n)=f(n-1)+5*f(n-2)+f(n-3)- ...
分类:
其他好文 时间:
2020-05-18 22:55:54
阅读次数:
73
Peripheral \EVT\EXAM\BLE\Peripheral\Profile\include\gattprofile.h 1 gattprofile.h //重要 因为只读 需要重新生成一次 2 3 #define SIMPLEPROFILE_CHAR1_LEN 10 4 #define ...
分类:
其他好文 时间:
2020-05-18 20:54:48
阅读次数:
62