golang的struct{}类型channel struct{}是结构体类型的代表; struct{}{}是结构体的值,并且值为空的代表 之前看代码的时候发现有如下定义的channel,就觉得很诧异 var ch chan struct{} 这其中,struct{}是个什么鬼。 实际上struct ...
分类:
其他好文 时间:
2020-04-07 20:50:16
阅读次数:
99
1 #include<stdio.h> 2 #define MAXN 10001 3 int a[MAXN],root[MAXN]; 4 int getfather(int x); 5 int main(){ 6 int i,a1,a2,fa1,fa2,ch; 7 char op; 8 scanf( ...
分类:
其他好文 时间:
2020-04-04 14:36:30
阅读次数:
60
一个栈 //栈 #include <stdio.h> #include <math.h> #include <stdlib.h> #include <algorithm> #define STACK_INIT_SIZE 20 #define STACK_INCREMENT 10 typedef ch ...
分类:
其他好文 时间:
2020-04-03 22:00:38
阅读次数:
64
Go语言通道(chan)——goroutine之间通信的管道 如果说 goroutine 是 Go语言程序的并发体的话,那么 channels 就是它们之间的通信机制。一个 channels 是一个通信机制,它可以让一个 goroutine 通过它给另一个 goroutine 发送值信息。每个 ch ...
分类:
编程语言 时间:
2020-04-01 13:12:47
阅读次数:
91
一、Selenium 1. selenium是什么 Selenium [1] 是一个用于Web应用程序测试的工具。Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。支持的浏览器包括IE(7, 8, 9, 10, 11),Mozilla Firefox,Safari,Google Ch ...
分类:
其他好文 时间:
2020-04-01 01:04:06
阅读次数:
109
1 int read()//快速读入 2 { 3 int x=0,f=1;char ch=getchar(); 4 while(ch<'0'||ch>'9') 5 { 6 if(ch=='-') 7 f=-1; 8 ch=getchar(); 9 } 10 while(ch>='0'&&ch<='9 ...
分类:
其他好文 时间:
2020-03-30 23:29:41
阅读次数:
110
```#include#include#include #includeusing namespace std;#define int long longtypedef long long ll;const int N=200;int read(){ int res=0,ch,flag=0; if(... ...
jQuery - 链(Chaining) 通过 jQuery,可以把动作/方法链接在一起。 Chaining 允许我们在一条语句中运行多个 jQuery 方法(在相同的元素上)。 jQuery 方法链接 直到现在,我们都是一次写一条 jQuery 语句(一条接着另一条)。 不过,有一种名为链接(ch ...
分类:
Web程序 时间:
2020-03-28 10:29:18
阅读次数:
81
转自:https://blog.csdn.net/liwenjia1981/article/details/6304547 头文件准备<string.h> 函数原型 void *memset(void *s, int ch, unsigned n); //n参数是以字节为单位,最好用sizeof() ...
分类:
其他好文 时间:
2020-03-27 12:45:14
阅读次数:
55
from myToolsPkgs.pytorch_block import * from myToolsPkgs.pytorch_helper import * class Classifier(nn.Module): def __init__(self, in_size, in_ch): supe ...
分类:
其他好文 时间:
2020-03-25 23:13:57
阅读次数:
242