- 博客(5)
- 问答 (1)
- 收藏
- 关注

原创 terreract 5.0 linux 安装
安装最新的 版本踩了好多坑 ,具体安装参看以下链接https://www.cnblogs.com/snakeskin/p/11296631.html最新的tesseracthttps://github.com/tesseract-ocr/tesseract直接 clone在这篇基础上 只需要改动gcc 版本即可,至少要8.1 以上gcc 下载位置http://ftp.gnu.org/gnu/gcc/安装 参考https://www.quyu.net/info/628.htm...
2020-12-07 15:52:44
224
1
原创 python3 字典嵌套字典 赋值异常解决及猜测
针对dict中 嵌套dict 出现复制异常:lists={}test=['s1','s2','s3']data = {'value': '',}for i in range(2): lists[i]=data# dic = {0: {'value': '',}, 1:{'value': '',}}for j in range(2): # print(j) l...
2018-10-31 17:11:37
1704
原创 读书笔记---机器学习knn
分类器代码:# 用于分类的输入向量是inX 其实就是一个点,输入的训练样本集为dataSet,标签向量为labels,K表示选择最近邻居的数目# 分类器def classify0(inX,dataSet,labels,k): # 距离计算 dataSetSize=dataSet.shape[0] # 计算行数 shape返回是一个元组(行数,列数) # dat...
2018-07-30 15:33:14
299
原创 关于python3 input 和在python3 中使用python2的raw_input
# 测试 python3的input降级后输入字符类型需要加引号ss=input('输入年龄:')print(type(ss))# python3降级使用Python2的raw_inputss=eval(input('输入年龄:'))print(type(ss))在python3中python2的raw_input 被替换为input,要想使用原来python2的方法可以使用eva...
2018-07-30 14:56:30
719
原创 python 导入 excel
# -*- coding: utf-8 -*-import xlrdfrom datetime import date,datetimedef read_excel(): #文件位置 ExcelFile=xlrd.open_workbook(r'C:\Users\wangxingyue1\Desktop\XinBangCount.xlsx') #获取目标EXCEL文件...
2018-07-24 15:27:14
2062
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人