摘要: 在pycharm终端中pip 安装命令:pip install torchvisionAnaconda中conda安装命令:conda install torchvision -c soumithfor more source: python setup.py install 阅读全文
posted @ 2020-08-01 18:53 Tomorrow1126 阅读(584) 评论(0) 推荐(0) 编辑
摘要: C 库函数 - atoi() C 标准库 - <stdlib.h> 描述 C 库函数 int atoi(const char *str) 把参数 str 所指向的字符串转换为一个整数(类型为 int 型)。 声明 下面是 atoi() 函数的声明。 int atoi(const char *str) 阅读全文
posted @ 2020-08-01 16:13 Tomorrow1126 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include<string> #include<cstring> #include<cmath> #include<algorithm> using namespace std; //两个小于1000000000的数 s 阅读全文
posted @ 2020-08-01 16:12 Tomorrow1126 阅读(94) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> #include<malloc.h>//使用malloc需要的头文件 int main(void) { char *p=(char *)malloc(100*sizeof(char));malloc在堆上开辟字节空间,返回值是 阅读全文
posted @ 2020-08-01 15:20 Tomorrow1126 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 缓冲区是什么:缓冲区又称为缓存,它是内存空间的一部分。也就是说,在内存空间中预留了一定的存储空间,这些存储空间用来缓冲输入或输出的数据,这部分预留的空间就叫做缓冲区。 缓冲区根据其对应的是输入设备还是输出设备,分为输入缓冲区和输出缓冲区。 为什么要引入缓冲区: 比如我们从磁盘里取信息,我们先把读出的 阅读全文
posted @ 2020-08-01 15:09 Tomorrow1126 阅读(353) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include<string> #include<cstring> #include<cmath> #include<algorithm> using namespace std; int n; int a[105]; i 阅读全文
posted @ 2020-08-01 14:56 Tomorrow1126 阅读(114) 评论(0) 推荐(0) 编辑