Python
丘丰寿
中南大学通信工程
展开
-
Python抓取网页图片
#coding=utf-8 import urllib import re def getHtml(url): page = urllib.urlopen(url) html = page.read() return html def getImg(html): reg = r'src="(.+?\.jpg)" pic_ext'原创 2016-03-01 16:19:33 · 430 阅读 · 0 评论 -
Python做字符串处理
今天在修改C++和Matlab的代码的时候,出现了以下问题。C++调用Eigen,创建的矩阵,下标是从0开始,Matlab的则是从1开始。下面为Matlab代码,需要转换成C++,即将所有的下标索引值减1. A1 6 * M(10) - 6 * M(14) - 6 * M(18) + 6 * M(2) + 6 * M(28) - 6 * M(32) - 6 * M(36) - 6 * M(原创 2017-09-16 21:43:23 · 258 阅读 · 0 评论 -
hough_voting_gpu
hough_voting_gpu_op.cc/* Copyright 2015 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Licens...原创 2018-07-05 10:50:38 · 630 阅读 · 1 评论