![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
文章平均质量分 62
u25th_engineer
这个作者很懒,什么都没留下…
展开
-
【札记】Python处理TSV文件以及144790个英语单词的注音、释义、例句的.sql和.tsv文件下载
两年前的老东西了,这个周末闲得无聊又拿出来随便玩儿下。原创 2022-05-29 17:33:24 · 467 阅读 · 0 评论 -
【正解。实用】计算两个文件夹内图像的SSIM与PSNR
要求:两个文件夹内的图像数量一致、文件名对应一致。 比如:文件夹A下有3张图像x1.png、x2.png、x3.png,文件夹B下也有3张图像x1.png、x2.png、x3.png。 所用命令如下:python evaluate.py --org_img_path path_1 --pred_img_path path_2 --metric psnr 上述命令中的path_1与path_2分别是两个文件夹的绝对路径。 运行结果示例,如图1至图3所示。原创 2021-06-01 18:54:22 · 2091 阅读 · 4 评论 -
SSD算法pytorch实现复现结果记录(附个人修改后的完整源代码)
如题。 下面是最终验证测试集的结果。Writing bicycle VOC results fileWriting bird VOC results fileWriting boat VOC results fileWriting bottle VOC results fileWriting bus VOC results fileWriting car VOC results fileWriting cat VOC results fileWriting chair VOC r原创 2021-02-08 15:39:21 · 2178 阅读 · 8 评论 -
【记录】Ubuntu 18.04编译Python 3.7.5源码并安装所用configure命令
configure命令:configure --enable-shared --enable-profiling --enable-optimizations --enable-loadable-sqlite-extensions --enable-big-digits --with-universal-archs=all --with-suffix=.exe --with-pydebug --with-assertions --with-lto --with-h原创 2021-01-22 11:39:03 · 699 阅读 · 0 评论 -
【成功】Windows 10上python 3.7安装pycrypto和cryptography
最初安装pycrypto时,我是打算通过源码安装,下载源码后运行python374 setup.py install 结果没成功,报错了。查了网上好多博客、问答,都没解决好。 最后尝试着pip3 install pycrypto 居然成功了!有点操蛋,我记得最开始我就试过通过 pip 安装来着,没成功。难不成是因为中间配了一些环境(OpenSSL 什么的),导致可以通过***pip*** 来安装了? 具体源码安装pycrypto时报的错,见博客末尾1。 安装crypto原创 2021-01-08 23:10:19 · 7429 阅读 · 1 评论 -
合肥工业大学2020-2021学年《数据挖掘》实验报告(Python实现)
1 实验1:基于UCI soybean Dataset的分类任务1.1 实验目的 • 熟练掌握基本的数据预处理技术; • 学会运用决策树、随机森林等方法解决分类任务。1.2 实验任务 基于Molecular Biology DataSet完成分类任务,kNN、决策树、多层感知器、朴素贝叶斯、SVM、随机森林、bagging方法任选或组合,且不限于上述方法和策略,允许有预处理步骤。1.3 实验环境 • 硬件:Dell G3 3579笔记本 • 软件: OS:Windo原创 2020-11-04 15:57:12 · 10082 阅读 · 7 评论 -
爬取并处理150708个英语单词的例句
还是爬取必应在线词典的内容。先放一段代码和两张图片,改天填坑。import urllib.requestimport refrom bs4 import BeautifulSoupmyRule5 = r'((http|ftp|https)://)?(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3...原创 2020-05-03 11:44:27 · 5621 阅读 · 1 评论 -
初步处理爬取到的150708个单词的数据(原始网页文档格式,包含注音、释义与例句,等等)
先贴一段代码,改天填坑。#-*- coding : utf-8 -*-# coding: utf-8import reimport osdef openFile(path): fileNames = os.listdir(path) files = [] #目录下所有文件的内容所构成的列表,形式为:13_phytochemical.txt vocabula...原创 2020-04-29 00:37:47 · 3945 阅读 · 1 评论 -
收集英语单词及释义的前期准备工作
纯英语单词可以从下面几个网址下载(第3个和第4个为博主上传到CSDN的文件):网址1网址2网址3网址4 我将下载好的英文单词列表存放到阿里云服务器,文件结构与爬虫所在目录结构如图1与图2所示。并使用如下所示的Python代码,对于每个单词分别爬取Bing在线词典所給出的释义。import urllib.requestdef grab(url,...原创 2020-04-27 13:54:44 · 3558 阅读 · 0 评论 -
Ubuntu 16.04 LTS解决“selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executabl”
今天玩爬虫时遇到一个报错:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home ...原创 2019-05-13 17:16:07 · 1183 阅读 · 2 评论 -
Python学习日志
目录Cancel with breakSkip with continuePositional ArgumentsKeyword ArgumentsGather Positional Arguments with *Gather Keyword Arguments with **Uses of _ and __ in Namespreferences: ...原创 2019-05-11 17:16:15 · 522 阅读 · 0 评论 -
Python小练习
3.15. Make a multilevel dictionary called life. Use these strings for the topmost keys: 'animals', 'plants', and 'other'. Make the'animals' key refer to another dictionary with the keys 'cat...原创 2019-05-11 15:37:54 · 856 阅读 · 0 评论 -
Ubuntu 16.04 LTS解决报错“session not created: Chrome version must be between 70 and 73”
在解决了上一条博客提到的问题后,又出现了新错误:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome version must be between 70 and 73 (Driver info: chromedriver=73.0.3683.8...原创 2019-05-13 18:24:32 · 13481 阅读 · 0 评论