2018年3月21日

numpy reshape -1

摘要: >>> import numpy as np >>> x = np.arange(12) >>> x array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) >>> x.reshape(2,3,2,1) array([[[[ 0], [ 1]], [[ 2], [ 3]], ... 阅读全文

posted @ 2018-03-21 13:55 cdekelon 阅读(206) 评论(0) 推荐(0) 编辑

numpy official book , broadcasting

摘要: https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.exp.html https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html 阅读全文

posted @ 2018-03-21 10:50 cdekelon 阅读(77) 评论(0) 推荐(0) 编辑

2018年3月16日

gimp and screenshot and Simplescreenrecorder

摘要: $ sudo apt-get install gimp $ export DISPLAY=:0 $ gimp out.ppm sudo apt-get install scrot export DISPLAY=:0 scrot 1.jpg 阅读全文

posted @ 2018-03-16 17:14 cdekelon 阅读(143) 评论(0) 推荐(0) 编辑

2018年3月14日

git rm vs rm

摘要: http://yang3wei.github.io/blog/2013/02/03/git-rm-he-rm-de-qu-bie/ http://blog.csdn.net/bitcarmanlee/article/details/51315406 阅读全文

posted @ 2018-03-14 11:42 cdekelon 阅读(74) 评论(0) 推荐(0) 编辑

2018年3月7日

np.stack

摘要: http://blog.csdn.net/csdn15698845876/article/details/73380803 阅读全文

posted @ 2018-03-07 16:24 cdekelon 阅读(176) 评论(0) 推荐(0) 编辑

numpy guide

摘要: https://www.cnblogs.com/xinchrome/p/5043480.html https://wizardforcel.gitbooks.io/ts-numpy-tut/content/15.html 一、数组方法 创建数组:arange()创建一维数组;array()创建一维或 阅读全文

posted @ 2018-03-07 15:59 cdekelon 阅读(141) 评论(0) 推荐(0) 编辑

array , asarray, len , shape, np.squeeze , [0,0:4] 降维

摘要: http://blog.csdn.net/lanchunhui/article/details/55657040 >>> g = np.array([[ 40.47109199 , -10.01622954 , 275.29573762 , 311.23186909 , 0.99994779]] > 阅读全文

posted @ 2018-03-07 15:08 cdekelon 阅读(350) 评论(0) 推荐(0) 编辑

lambda 表达式

摘要: https://www.cnblogs.com/hf8051/p/8085424.html https://www.cnblogs.com/guigujun/p/6134828.html https://www.cnblogs.com/AlwaysWIN/p/6202320.html 阅读全文

posted @ 2018-03-07 14:54 cdekelon 阅读(62) 评论(0) 推荐(0) 编辑

os.path.split()

摘要: 、os.path.split()函数语法:os.path.split('PATH') 参数说明: 实际上,该函数的分割并不智能,它仅仅是以 "PATH" 中最后一个 '/' 作为分隔符,分隔后,将索引为0的视为目录(路径),将索引为1的视为文件名,如: >>> import os>>> os.pat 阅读全文

posted @ 2018-03-07 14:48 cdekelon 阅读(162) 评论(0) 推荐(0) 编辑

2018年3月5日

os.path.expanduser(path)

摘要: http://python.usyiyi.cn/translate/python_278/library/os.path.html 阅读全文

posted @ 2018-03-05 11:25 cdekelon 阅读(178) 评论(0) 推荐(0) 编辑

导航