码迷,mamicode.com
首页 >  
搜索关键字:ch    ( 3220个结果
golang的struct{}类型channel
golang的struct{}类型channel struct{}是结构体类型的代表; struct{}{}是结构体的值,并且值为空的代表 之前看代码的时候发现有如下定义的channel,就觉得很诧异 var ch chan struct{} 这其中,struct{}是个什么鬼。 实际上struct ...
分类:其他好文   时间:2020-04-07 20:50:16    阅读次数:99
数据结构1 - 05-树8 File Transfer
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之间通信的管道
Go语言通道(chan)——goroutine之间通信的管道 如果说 goroutine 是 Go语言程序的并发体的话,那么 channels 就是它们之间的通信机制。一个 channels 是一个通信机制,它可以让一个 goroutine 通过它给另一个 goroutine 发送值信息。每个 ch ...
分类:编程语言   时间:2020-04-01 13:12:47    阅读次数:91
爬虫&Selenium&ChromeDriver
一、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
快速读入(比scanf和getchar还快的读入方法)
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
AcWing 311. 月之谜 数位dp
```#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(... ...
分类:Windows程序   时间:2020-03-30 21:37:34    阅读次数:85
jQuery - 链(Chaining):把动作/方法链接在一起
jQuery - 链(Chaining) 通过 jQuery,可以把动作/方法链接在一起。 Chaining 允许我们在一条语句中运行多个 jQuery 方法(在相同的元素上)。 jQuery 方法链接 直到现在,我们都是一次写一条 jQuery 语句(一条接着另一条)。 不过,有一种名为链接(ch ...
分类:Web程序   时间:2020-03-28 10:29:18    阅读次数:81
memset函数用法
转自: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
pytorch 的register_hook和register_backward_hook的介绍和实验
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
3220条   上一页 1 ... 16 17 18 19 20 ... 322 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!