- 博客(14)
- 资源 (9)
- 收藏
- 关注
原创 python-heapq
top_ka = []k = 6heapq.heappush(a, ele)heapq.heappop(a)heapq.heareplace(a, ele)
2017-07-29 15:29:13 346
原创 python-super
cls.mro()method resolution oderdef super(cls, inst): mro = inst.__class__.mro() return mro[mro.index[cls] + 1]
2017-07-29 13:55:21 299
原创 flownet2-errors
1. engine error'Layer conv1 has unknown engine'modify: CUDNN -> CAFFEhttps://github.com/BVLC/caffe/issues/26822. ‘RandomGeneratorParameter’ does not name a type, ’https://github.com/l
2017-07-28 15:24:35 1352
原创 stack
def calx(op, a, b): if op == 'mul': return str(int(a) * int(b)) elif op == 'add': return str(int(a) + int(b)) elif op == 'div': if b == '0': return 'er
2017-07-26 22:20:14 386
原创 python-argparse
parser = argparse.ArgumentParser()parser.add_argument('echo')parser.add_argument('-num', typr=int, default=0)args = parser.parse_args()print(args.echo, args.num)
2017-07-24 14:03:05 296
原创 python-pypdf2
from PyPDF2 import PdfFileWriter, PdfFileReaderpdf_input = PdfFileReader(open('xx.pdf', 'rb'))pdf_output = PdfFileWriter()print(pdf_input.numPages)page = pdf_input.getPage(0) #pdf_output.addPa
2017-07-21 17:07:51 1423
原创 visual studio-third part lib
Configuration Properties -> VC++Directories -> Include Directories(.h) Library Directories(.lib) Linker/Input add .lib nameabout .dll file add directories into Configuration Properties/Debu
2017-07-14 22:40:51 388
原创 N/D to float number
#include "stdafx.h"#include#include#include#include#includeusing namespace std;int _tmain(int argc, _TCHAR* argv[]){ int n, d; cin >> n >> d; int tmpn = n; int tmpd = d; int x = 0; w
2017-07-12 22:15:02 285
原创 mxnet-install using source code
1. openblasmake make PREFIX=/PATH/ installexport LD_LIBRARY_PATH=/PATH/bin:$LD_LIBRARY_PATHor.modify ~/.bashrcsource ~/.bashrcmxnet/make.config.mdUSE_BALS=openblasA
2017-07-04 19:47:36 518
原创 python-skimage
1. skimage.utilcroppadrandom_noiseregular_gridview_as_windowsview_as_blcks2. skimage.transformimg = np.array(img, dtype=float)resize(img, [], order=1) 0-nearest 1-bilinear 3-cub
2017-07-02 21:08:40 1727
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人