- 博客(16)
- 收藏
- 关注
转载 return-an-iterator
https://stackoverflow.com/questions/20949978/return-an-iterator
2020-03-21 07:33:59
117
转载 Java – Append values into an Object[] array
https://mkyong.com/java/java-append-values-into-an-object-array/
2020-03-21 07:17:54
111
原创 C++ 从键盘、文件读入
Background InfoEOF是C语言中为了区分有效数据和输入结束符的。 EOF的输入由系统锁定,windows下是 ctrl+z,linux/unix下是 ctrl+d.在 C++ 中,输入输出流被定义为类。C++ 的I/O库中的类称为流类(stream class)。 用流类定义的对象称为流对象。 输入和输出是数据传送的过程,数据如流水一样从一处流向另一处。C++ 形象地将此过...
2020-01-13 01:33:59
2054
原创 Linux32和Linux64下进程栈分析
Linux32和Linux64下进程栈分析x86 和 x86-64 系统采用不同的方式来对函数参数进行传递。x86通过栈进行参数的传递,而x86-64通过寄存器进行参数的传递。用一段简单的代码来进行分析:using namespace std;int add(int a, int b){ return a + b;}int main(int argc, char const *ar...
2019-12-25 06:10:29
362
转载 SSH 公钥和密钥
https://www.cnblogs.com/toulanboy/p/8706741.html生成密钥对$ ssh-keygen上传 public keyssh-copy-id user@host或者$ ssh user@host 'mkdir -p .ssh && cat >> .ssh/authorized_keys' < ~/.ss...
2019-12-19 01:19:02
135
转载 atoi()和stoi()的区别
https://blog.csdn.net/yky__xukai/article/details/79554963
2019-12-08 10:51:21
458
原创 github push and pull using git bash
In git bash:$ git init$ git add .$ git commit -m "Add existing file"$ git push -allOther useful commands$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY$ git remote -v
2019-12-05 09:42:11
219
原创 C/C++ 数据类型
C/C++ 数据类型不同数据类型具体的长度(字节数)受采用的编译器和编译环境影响,采用不同的编译器在一些数据类型上会得到不同的结果,比较容易有不同的数据类型有 int, long. 本文使用的编译器为 gcc,所使用的系统是 linux64.1. int, char, short, long#include<iostream>#include<string>usi...
2019-11-28 01:17:11
85
原创 C++ 指针:int* 和 char*
C++ 指针:int* 和 char*int* 指针#include<iostream>#include<string>using namespace std;int main(){ int a = 300; int* p = &a; // 定义的是 int* 指针类型的变量p cout << *p << endl; /...
2019-11-28 00:17:10
2161
转载 numpy数组中冒号和负号的含义
https://blog.csdn.net/u013555719/article/details/79565366@TOC
2019-11-27 23:25:45
113
转载 one same policy
https://www.cnblogs.com/laixiangran/p/9064769.htmlhttps://blog.csdn.net/shimiso/article/details/21830313https://www.jianshu.com/p/1f5c19bdba4d
2019-10-23 02:31:55
99
原创 python读取mat文件生成h5文件
1. Matlab生成 .mat 文件p = rand(1,10);q = ones(10);save('pqfile.mat','p','q')当用python读取 pqfile.mat 这个文件时,可以通过get§, get(q) 分别获得p、q的值。2. 读取 .mat 文件import scipy.io as iodata = io.loadmat(path)data =...
2019-04-20 15:49:45
2581
转载 tensorflow Saver()和Restore()
tensorflow saver1. 创建对象import tensorflow as tftf.train.Saver(max_to_keep=5)max_to_keep 参数 by default = 5,即保存最近的5个检查点ckpt文件。若n=0或者None,则保存所有的ckpt文件。2. 通过计数器激活saverfor i in range(N) if i%100 == ...
2019-04-11 13:52:26
462
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人