- 博客(9)
- 收藏
- 关注
原创 numpy 中sum(axis=0), 对axis的理解
sum函数中的axis相当于去除axis指定的那个维度。 例如:a维度是(2,3,4),则a.sum(axis=0) 结果为(3,4) a.sum(axis=1)结果为(2,4)。 即除了axis指定的那个维度外,其它维度索引值相同就累加。def dfs_index(a, dim, index, outlist): ''' get all indexs for ...
2018-08-25 23:36:55
2660
1
原创 Git —— merge, cherry-pick, rebase
1. merge explore You may read my article Git inside before. I hope it’ll help you to know Git in essence. (1) test case 1: merge without conflict~ $ mkdir beta~ $ cd beta~ $ git init~ $ ...
2018-06-19 20:59:16
396
原创 Git —— inside
1. low level commandgit ls--files --stage : view index contentgit cat-file < blob | tree | commit > hash : view objects content git ls-tree hash : view tree object content, because git cat...
2018-06-16 22:44:34
269
原创 Insert math formula in Jupyter notebook
special character1 $represent formula boundary, that is begin or end formula$$ — one formula a single lineexample: ex1: $f(x)=3x+7$, equal to f(x)=3x+7f(x)=3x+7f(x)=3x+7 ex2: $$f(x)=3x+7$$ ...
2018-06-07 21:08:00
628
原创 Jupyter notebook keyborad shortcuts
Command mode (press ESC)mode switchEnter — switch to edit modeEsc — switch to command modecell state switchy — code statem — markdown staterun cellShift-Enter — run current ce...
2018-05-05 16:21:20
289
原创 正则表达式——基础部分
元字符 元字符:关于字符的字符。 按作用分类:匹配字符,匹配位置,限定重复次数。 (1) 常用的匹配字符 . 匹配除换行符以外的任意字符 \w 匹配字母、数字、下划线、汉字 \s 匹配空白符(包括空格、TAB、换行等) (2) 常用的占位符 ^开头 $结尾 \b单词开头结尾(notepadd++中测试发现只要不是字母、数字、下划线、汉字都有效,eg. \bgood\b 也能匹配?
2017-08-06 10:44:06
293
原创 SSH服务器
安装 sudo apt-get install ssh启动服务: /etc/init.d/sshd restart netstat -tlnp | grep sshlinux 客户端连接 ex: ssh 127.0.0.1 exit ex: ssh account@127.0.0.1 ex: ssh accout@127.0.0.1 find / &>~/find.log ex:
2017-08-01 23:54:07
335
原创 Ubuntu mirror source modify
why? 国内镜像源下载速度快how? (1) 备份官方镜像源 cp /etc/apt/sources.list /etc/apt/sources.list.backup (2) 编辑/etc/apt/sources.list文件 vim /etc/apt/sources.list 替换原来的官方镜像源,eg. deb http://mirrors.163.com/ubuntu/ 重
2017-07-25 22:46:22
315
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人