10 2019 档案

摘要:query = 'Hello spider' with open( 'baidutrans.js' , 'r' , encoding='utf-8' ) as f: ctx = execjs.compile( f.read() ) sign = ctx.call( 'e' , query ) 阅读全文
posted @ 2019-10-28 21:02 Raymone1125 阅读(125) 评论(0) 推荐(0) 编辑
摘要:with open('douban.json','w',encoding='utf-8') as f: f.write(json.dumps(json.loads(response),ensure_ascii=False,indent=2))#这个方法太秀了,其实STR方法也可以让这个字典变成字符串,但是功能没有这个强大 阅读全文
posted @ 2019-10-28 21:01 Raymone1125 阅读(421) 评论(0) 推荐(0) 编辑
摘要:retrying模块的使用 安装模块:pip3 install retrying 使用方式: 使用retrying模块提供的retry模块 通过装饰器的方式使用,让装饰器的函数反复的执行 retry可以传入参数stop_max_attempt_number,让函数报错后继续重新执行,达到最大执行次数 阅读全文
posted @ 2019-10-28 14:06 Raymone1125 阅读(402) 评论(0) 推荐(0) 编辑
摘要:https://github.com/icemonkey/geekcomputers_python 阅读全文
posted @ 2019-10-26 18:05 Raymone1125 阅读(266) 评论(0) 推荐(0) 编辑
摘要:花了一天时间,直接上代码 语音识别 文字转语音 阅读全文
posted @ 2019-10-23 22:19 Raymone1125 阅读(918) 评论(0) 推荐(0) 编辑
摘要:特征提取之Haar特征一、前言(废话)很久没有写博客了,一晃几年就过去了,为了总结一下自己看的一些论文,以后打算写一些自己读完论文的总结。那么,今天就谈一谈人脸检测最为经典的算法Haar-like特征+Adaboost。这是最为常用的物体检测的方法(最初用于人脸检测),也是用的最多的方法,而且Ope 阅读全文
posted @ 2019-10-22 23:17 Raymone1125 阅读(1198) 评论(0) 推荐(0) 编辑
摘要:前言 AutoEncoder是深度学习的另外一个重要内容,并且非常有意思,神经网络通过大量数据集,进行end-to-end的训练,不断提高其准确率,而AutoEncoder通过设计encode和decode过程使输入和输出越来越接近,是一种无监督学习过程。 AutoEncoder Introduct 阅读全文
posted @ 2019-10-22 23:16 Raymone1125 阅读(1415) 评论(0) 推荐(0) 编辑
摘要:import difflib import jieba from sklearn.metrics import mean_squared_error a='博客园是一个面向开发者的知识分享社区。自创建以来,博客园一直致力并专注于为开发者打造一个纯净的技术交流社区,推动并帮助开发者通过互联网分享知识,从而让更多' b='博客园是一个面向开发者的知识分享社区。自创建以来,博客园一直致力并专注于为开发... 阅读全文
posted @ 2019-10-21 21:16 Raymone1125 阅读(471) 评论(0) 推荐(0) 编辑
摘要:首先要寻找相应python版本的库,在那个虚拟环境下使用:如3.5版本的用我的tensorflow虚拟环境, 这个方法首先要下载pyltp相应的whl安装包,这里提供一个免费可用的下载地址:windows下python3.5https://link.zhihu.com/?target=http%3A 阅读全文
posted @ 2019-10-21 21:05 Raymone1125 阅读(886) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-15 21:48 Raymone1125 阅读(141) 评论(0) 推荐(0) 编辑
摘要:前言 刚开始接触Linux的我们,肯定认为Linux系统就是那种枯燥的终端界面。然而实际上Linux下的终端还是有很多种有趣的玩法~~ toilet 简介 toilet能用字母拼写出更大字母的工具,具体拼出什么字由命令后面的参数决定,不仅如此,它还能打印出各种风格的效果,比如彩色,金属光泽等。 安装 阅读全文
posted @ 2019-10-11 18:47 Raymone1125 阅读(215) 评论(0) 推荐(0) 编辑
摘要:#Author:Alex.Zhang import pyocr import importlib import sys import time importlib.reload( sys ) time1 = time.time() # print("初始时间为:",time1) import os.path from pdfminer.pdfparser import PDFParser , PD 阅读全文
posted @ 2019-10-04 12:14 Raymone1125 阅读(472) 评论(0) 推荐(0) 编辑
摘要:#Author:Alex.Zhang from wordcloud import WordCloud with open("2.txt" ,encoding="utf-8")as file: #1.读取文本内容 text=file.read() #2.设置词云的背景颜色、宽高、字数 wordcloud=WordCloud(font_path="C:/Windows... 阅读全文
posted @ 2019-10-04 12:13 Raymone1125 阅读(299) 评论(0) 推荐(0) 编辑
摘要:Now that we've talked about sample prep, let's talk about imaging. Now that we've talked about sample prep, let's talk about imaging. Now that we've t 阅读全文
posted @ 2019-10-01 21:41 Raymone1125 阅读(437) 评论(1) 推荐(0) 编辑