###1、http.STATUS_CODES 是一个对象,属性名都是状态码,属性值则是该状态码的简短解释。 ###2、用法 var http = require('http'); //引入http模块 http.createServer(function(req, res) { //调用http模块 ...
分类:
Web程序 时间:
2021-05-24 02:07:12
阅读次数:
0
题目描述 有 \(N\) 位选手参加一个比赛。每个回合,第一名会得到 \(N\) 分,第二名会得到 \(N - 1\) 分,以此类推,最后一名会得到 \(1\) 分。 现在第 \(i\) 位选手初始有 \(B_i\) 分。求多少选手经过一个回合,分数有机会变成所有选手中最高的。 \(3 \leq n ...
分类:
其他好文 时间:
2021-05-24 00:08:43
阅读次数:
0
「图论」第4章 强连通分量课堂过关 A. 【例题1】有向图缩点 题目 代码 #include <iostream> #include <cstdio> #include <cstring> #include <queue> using namespace std; #define N 10010 # ...
分类:
其他好文 时间:
2021-05-23 23:52:43
阅读次数:
0
很明显的拓扑 推一波: https://www.luogu.com.cn/blog/Hehe-0/p2017-dizzy-cows-g 1 #include<bits/stdc++.h> 2 3 4 using namespace std; 5 const int mmm=1e6+1; 6 7 in ...
分类:
其他好文 时间:
2021-05-23 23:01:52
阅读次数:
0
今天想给一个 Static 控件添加一个鼠标相关的事件:移入,移出,按下,松开事件 一开始以为在 while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character message ...
#include<vector> #include<queue> #include<string> #include<binaryNode.hpp> #include<iostream> #include<sstream> template<typename T> class traverse { ...
分类:
其他好文 时间:
2021-05-04 15:34:11
阅读次数:
0
CUDA not support fork os.register_at_fork进行清理锁操作(需要拿到锁,因此一般为库的作者使用,提高库的多进程兼容性) Fork VS Spawn Spawn的缺点 Guess import sys import multiprocessing as mp de ...
分类:
编程语言 时间:
2021-05-03 12:10:27
阅读次数:
0
RabbitMQ作为当前流行的消息队列之一,是基于Erlang语言开发的,对AMQP【Advanced Message Queue,高级消息队列协议】的开源实现。用于在分布式系统中存储转发消息,在易用性、扩展性、高可用性等方面表现不俗。本文主要简述RabbitMQ的相关概念和简单控制台介绍,仅供学习... ...
分类:
其他好文 时间:
2021-04-30 12:34:01
阅读次数:
0
selenium.common.exceptions.WebDriverException: Message: 'Driver' executable may have wrong permissions. 出现原因: driver = webdriver.Chrome(executable_pat ...
分类:
其他好文 时间:
2021-04-30 12:04:12
阅读次数:
0
链判断运算符 ES2020 引入了“链判断运算符”(optional chainingoperator) ?. 1. const firstName = message?.body?.user?.firstName || 'default'; 2. const fooValue = myForm.q ...
分类:
其他好文 时间:
2021-04-28 12:22:32
阅读次数:
0