VBA采用Application.OnTime实现计时器,代码如下: Public RunWhen As Double Public Const cRunIntervalSeconds = 120 ' two minutes Public Const cRunWhat = "TheSub" ' th ...
分类:
其他好文 时间:
2021-01-20 12:10:43
阅读次数:
0
前言 学习ES6需要掌握的路线,了解什么是ECMAScript概述,了解Symbol数据类型,掌握let和const,以及变量的解构赋值,Set和Map的原理。 什么叫做箭头函数,ES6对于ES5都有哪些扩展,ES6的一些高级操作。 为了方便查看学习,我做了思维导图,如下图所示: ESMAScrip ...
分类:
其他好文 时间:
2021-01-19 12:20:55
阅读次数:
0
1.Page.exposeFunction() Page.exposeFunction,这个 API 用来在页面注册全局函数,非常有用: 在比如给 window 对象注册 readfile 全局函数: const puppeteer = require('puppeteer'); const fs ...
分类:
其他好文 时间:
2021-01-19 12:20:37
阅读次数:
0
// 創建自定義參數以配置管道 rs2::config cfg; // 設定影像尺寸(寬w,高h) const int w = 640; const int h = 480; // 設定欲顯示的影像流(可依需求啟動不一定要全設) cfg.enable_stream(RS2_STREAM_COLOR, ...
分类:
其他好文 时间:
2021-01-19 11:45:53
阅读次数:
0
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0
参考: https://oi-wiki.org/ds/li-chao-tree/ 例题: P4097 [HEOI2013]Segment #include<bits/stdc++.h> #define db double const int p=39989; using namespace std; ...
分类:
其他好文 时间:
2021-01-18 11:39:35
阅读次数:
0
** 关于快排函数的一些说明 ** qsort,包含在stdlib.h头文件里,函数一共四个参数,没返回值.一个典型的qsort的写法如下 qsort(s,n,sizeof(s[0]),cmp); 第一个参数是参与排序的数组名(或者也可以理解成开始排序的地址,可以写&s[i] 这样的表达式); 第二 ...
分类:
其他好文 时间:
2021-01-18 11:19:28
阅读次数:
0
对结构体排序 ''' #include<iostream> #include<algorithm> using namespace std; const int si= 101; struct segment { int l, r; bool operator < (const segment v) ...
分类:
编程语言 时间:
2021-01-18 11:05:01
阅读次数:
0
//全局请求路径 const baseUrl = "****"; //你的接口地址 //防止多次请求 let ajaxTimes = 0; export const Http = (options)=>{ ajaxTimes++; //请求未完成 加载动画 uni.showLoading({ tit ...
分类:
微信 时间:
2021-01-18 10:48:44
阅读次数:
0
const int MAXN = 200000 + 10; const int MAXM = 2000000 + 10; int n, m; vi G[MAXN]; int vis[MAXN]; int fa[MAXN]; int ans[MAXN]; struct Query { int x, y ...
分类:
编程语言 时间:
2021-01-16 12:11:10
阅读次数:
0