<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[aaether的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/aaether</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; aaether]]></copyright><item><title><![CDATA[【python】读取json文件数据并保存为HDF5文件]]></title><link>https://blog.csdn.net/aaether/article/details/100805874</link><guid>https://blog.csdn.net/aaether/article/details/100805874</guid><author>aaether</author><pubDate>Fri, 13 Sep 2019 16:46:42 +0800</pubDate><description><![CDATA[读取 JSON 文件的前 1000 行数据，并将这 1000 行数据储存为 HDF5 数据文件，命名为user_study.h5。
import pandas as pd
import json

def convert(file):
	fileobj = open(file)
	filedata = fileobj.read()
	jsondata = json.loads(filedata)[...]]></description><category></category></item><item><title><![CDATA[【python】向量空间搜索引擎进行图片验证码字符识别]]></title><link>https://blog.csdn.net/aaether/article/details/100804416</link><guid>https://blog.csdn.net/aaether/article/details/100804416</guid><author>aaether</author><pubDate>Fri, 13 Sep 2019 16:27:12 +0800</pubDate><description><![CDATA[图片验证码识别使用向量空间搜索引擎来做字符识别优点缺点文件目录结构完整代码：结论
使用向量空间搜索引擎来做字符识别
每个字符图片作为一个向量，计算向量之间的夹角余弦，越大相似性越高。
Created with Raphaël 2.2.0打开验证码图片将图片转化为黑白二值图像图将图片验证码切分成多个只包含一个字符的图片构造训练集将单个字符图片与训练集中的图片进行对比选择相似度最高的字符输出结果
优点...]]></description><category></category></item><item><title><![CDATA[python中open()和os.open()的区别]]></title><link>https://blog.csdn.net/aaether/article/details/100803771</link><guid>https://blog.csdn.net/aaether/article/details/100803771</guid><author>aaether</author><pubDate>Fri, 13 Sep 2019 15:35:34 +0800</pubDate><description><![CDATA[open()

filepath = "home/Code/user_data.json"
data = filepath.open()

结果是打开文件并返回数据，打开失败报IOError
IOError可能是由于文件不存在、读取时写入数据或者权限问题导致打开文件报错
os.open()

import os
os.open(filepath)
os.close()

结果是打开文件并返回文件描...]]></description><category></category></item><item><title><![CDATA[【codewar】Valid Braces-题目记录]]></title><link>https://blog.csdn.net/aaether/article/details/85396138</link><guid>https://blog.csdn.net/aaether/article/details/85396138</guid><author>aaether</author><pubDate>Sun, 30 Dec 2018 17:07:21 +0800</pubDate><description><![CDATA[KATA：
Write a function that takes a string of braces, and determines if the order of the braces is valid. It should return true if the string is valid, and false if it’s invalid.
This Kata is similar ...]]></description><category></category></item><item><title><![CDATA[【正则】findall分组匹配的捕获组与非捕获组]]></title><link>https://blog.csdn.net/aaether/article/details/85223493</link><guid>https://blog.csdn.net/aaether/article/details/85223493</guid><author>aaether</author><pubDate>Tue, 25 Dec 2018 11:32:29 +0800</pubDate><description><![CDATA[使用findall匹配的时候如果正则表达式中使用了分组，返回值为列表形式，并且往往和想要得到的结果相差许多
例如：
查看源码：
返回字符串中所有非重叠匹配的列表。
如果模式中存在一个或多个捕获组，则返回组列表; 如果模式有多个组，这将是一个元组列表。
结果中包含空匹配。

...]]></description><category></category></item><item><title><![CDATA[urllib实现请求发送（python3）]]></title><link>https://blog.csdn.net/aaether/article/details/85224036</link><guid>https://blog.csdn.net/aaether/article/details/85224036</guid><author>aaether</author><pubDate>Tue, 25 Dec 2018 10:51:52 +0800</pubDate><description><![CDATA[urllib实现请求发送一、传入url：urllib.request.urlopen二、构造请求：urllib.request.Request
一、传入url：urllib.request.urlopen
import urllib.request
response = urllib.request.urlopen(&amp;amp;quot;https://www.baidu.com&amp;amp;quot;)
print(response.r...]]></description><category></category></item><item><title><![CDATA[【python】回文查找：在一串数字中查找出最长的回文字段并输出]]></title><link>https://blog.csdn.net/aaether/article/details/85139357</link><guid>https://blog.csdn.net/aaether/article/details/85139357</guid><author>aaether</author><pubDate>Thu, 20 Dec 2018 20:50:30 +0800</pubDate><description><![CDATA[输入一串数字，找出其中最长的对称回文字段，并输出
输入：“34312332112332114”
输出一：最长回文字段  123321123321
输出二：所有回文字段  [‘343’, ‘123321’, ‘123321123321’, ‘11233211’]
# 定义保存回文字段的列表
hw = []
numstr = &quot;34312332112332114&quot;

# 第一种回文，金字塔型：343
...]]></description><category></category></item><item><title><![CDATA[【python】使用正则在不规则字符串中提取出多个ip地址]]></title><link>https://blog.csdn.net/aaether/article/details/85138602</link><guid>https://blog.csdn.net/aaether/article/details/85138602</guid><author>aaether</author><pubDate>Thu, 20 Dec 2018 20:37:47 +0800</pubDate><description><![CDATA[在不规则字符串中提取ip地址一、ip地址正则表达式二、提取ipip地址提取中可能出现的错误ip地址提取思路三、完整代码
ipv4地址总长度为32位，共4段，每段8位，以‘.’分割，每段为0~255的十进制数字
一、ip地址正则表达式
分段正则：




取值区间
正则
合并整理




0-9
\d



10-99
\d{2}
[1-9]?\d


100-199
1\d{2}
1\d{2}

...]]></description><category></category></item><item><title><![CDATA[【python】正则匹配基本方法]]></title><link>https://blog.csdn.net/aaether/article/details/85131331</link><guid>https://blog.csdn.net/aaether/article/details/85131331</guid><author>aaether</author><pubDate>Thu, 20 Dec 2018 18:16:00 +0800</pubDate><description><![CDATA[正则匹配匹配单个字符匹配多个字符匹配开头和结尾匹配分组基本使用方法1、match匹配2、search匹配3、findall查找4、sub替换5、split根据匹配进行切割字符串贪婪和非贪婪
正则表达式：匹配或查找符合某些规则的字符串数据
python中通过正则表达式对字符串进行匹配需要使用re模块
匹配单个字符




符号
功能




.
匹配任意一个字符


[ ]
匹配[ ]中列举的字符
...]]></description><category></category></item><item><title><![CDATA[列表推导式]]></title><link>https://blog.csdn.net/aaether/article/details/85098829</link><guid>https://blog.csdn.net/aaether/article/details/85098829</guid><author>aaether</author><pubDate>Wed, 19 Dec 2018 15:46:44 +0800</pubDate><description><![CDATA[列表推导式：轻量级循环创建列表
1、基本方式
a = [x for x in range(4)]	
	# a = [0, 1, 2, 3]
a = [x for x in range(3, 4)]	
	# a = [3,]
a = [x for x in range(3, 15, 2)]
	# a = [3, 5, 7, 9, 11, 13]

2、在循环中使用if
a = [x for x in...]]></description><category></category></item><item><title><![CDATA[匿名函数]]></title><link>https://blog.csdn.net/aaether/article/details/85098279</link><guid>https://blog.csdn.net/aaether/article/details/85098279</guid><author>aaether</author><pubDate>Wed, 19 Dec 2018 15:29:58 +0800</pubDate><description><![CDATA[匿名函数基本语法
lambda [arg1 [,arg2,.....argn]]:expression

匿名函数排序
stus = [
    {&amp;amp;quot;name&amp;amp;quot;:&amp;amp;quot;zhangsan&amp;amp;quot;, &amp;amp;quot;age&amp;amp;quot;:18}, 
    {&amp;amp;quot;name&amp;amp;quot;:&amp;amp;quot;lisi&amp;amp;qu]]></description><category></category></item><item><title><![CDATA[CSDN-markdown编辑器（欢迎页详细截图/自存）]]></title><link>https://blog.csdn.net/aaether/article/details/85098168</link><guid>https://blog.csdn.net/aaether/article/details/85098168</guid><author>aaether</author><pubDate>Wed, 19 Dec 2018 15:26:42 +0800</pubDate><description><![CDATA[这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题，有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能，丰富你的文章UML 图表这将产生一个流程图。:FLowchart流程图导出与导入...]]></description><category></category></item></channel></rss>