自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 问答 (1)
  • 收藏
  • 关注

原创 Word--Python-docx操作蒙古文等复杂文种更换字体

蒙古文办公自动化操作,word中如何设置蒙古文字体

2022-07-04 14:22:28 494 1

原创 ElasticSearch BM-25自定义权重

ElasticSearch BM-25https://www.cnblogs.com/novwind/p/15177871.html通过kibana中配置explain属性后,可以看出来每个文档的得分由:score = boost * idf tf组成。其中的boost = 2.2是下面公式中的k+1 = 1.2 + 1 =2.2组成,当我们在某个字段中加权时乘的是该值,例如我在两个字段,title和content字段中查询,并且title字段加权为1.1,则title字段中的得分会1.1

2022-04-15 02:57:37 1756

原创 原生js this.pareantNode undefined

http://cn.voidcc.com/question/p-butgeiqh-bdz.htmlhtml里 <div class="selection left" onclick="select_entity_class(this)">选择实体类型</div>js里function select_entity_class(s) { console.log(s.parentNode); }即可获取parentNode信息。...

2022-01-22 16:42:58 503

原创 对于sprintboot中加载静态文件路径和普通html中加载其他文件的路径区别

springboot 中默认静态文件访问目录是static文件夹所以如果引用其他文件的话,以static文件夹为根目录,<link rel="stylesheet" type="text/css" href="/css/mongolfont.css">而普通html的话,比如templates下的一个index.html引用css下的test.css的话,<link rel="stylesheet" type="text/css" href="../static/css/tes

2021-12-16 16:04:41 344

原创 writing_mode:vertical-lr和flex-direction布局以及蒙古文展示

蒙古文是从上到下,从左到右书写的,所以一般布局中,div布局要横向排列。这时我一般都是父div为flex-direction:row.category_1{ background: blueviolet; } .category_2{ background: #fd0101; } .detail{ display: inline-block; } .flex_test{ display: f

2021-12-12 15:57:24 1260

原创 解决div横向滚动条,背景色未铺满问题

https://www.1024sou.com/article/50651.html

2021-12-10 19:57:19 682

原创 动态添加的div添加事件,纯js

动态添加的没办法直接添加事件或方法这时通过事件监控来完成。<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><div onclick="get(this.innerHTML)"> 第一</div><div

2021-12-10 16:51:45 850

原创 js获取当前div内容,div没有id,class标识

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title></head><body><div onclick="get(this.innerHTML)"> 第一</div><div onclick="get(this.innerHTML)"&g

2021-12-10 16:24:06 1731

原创 Python如何删除多余的空格与空行

https://blog.csdn.net/lurrass/article/details/102524767这种情况在蒙古文信息处理里经常遇见。holvoo网爬虫中title部分是倒序的,可能是因为转动蒙古文字体的原因。<span class="title"> list2 <br/> list1</span>title_list = html.xpath('//*[@class="title"]/text()').extract()title_l.

2021-12-06 11:50:44 850

原创 正则表达式匹配指定匹配后面的匹配

在线正则匹配工具正则匹配教程,可以看此教程以下列出 ?=、?<=、?!、?<! 的使用区别字符串 : http://www.holvoo.net/article/articleView.do?id=08541b8a-fe1d-42bc-839d-d0e8250d21ac正则表达式 :(?<=(.*?id=)).*...

2021-12-05 16:34:06 515

原创 ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte

通过记事本另存为 utf带bom格式在读入蒙古文文件时经常遇见这种错误

2021-11-29 19:32:27 163

原创 常用工具 下载地址

录屏工具EVCapture_4.0.2

2021-11-28 11:43:17 71

原创 JDK下载与安装

下载地址http://www.codebaoku.com/jdk/jdk-index.html

2021-11-26 20:35:52 337

原创 lxml etree 获取指定标签下指定类下的内容

例子<table class="d"> <tr> <td>sdf</td> </tr></table><div class="d">dfdf</div>我要获取table下面的class为d的内容那么xpath语句是xpath('//table[contains(@class,"d")]/tr/td/text()')https://blog.csdn.net/sigmarising/a

2021-11-25 10:41:40 785

原创 sql 分页,limit,偏移,记录数

分页的底层sql语句是:SELECT IID,title,state FROM news limit #{offset},#{size}其中offset 是偏移量 size是每次获取的记录数offset = (pageNum - 1) * size;//pageNum是页数,1开始的任意数,当然超过所有记录数的话返回值肯定是空了size = 20;//可自己任意定义...

2021-11-22 17:41:13 839

原创 can only concatenate str (not “int“) to str

python 类型转换问题 str = '14' d = 12 c= d + str此时c会报错解决方法是 str = '14' d = 12 c = d + int(str)

2021-11-21 18:35:31 443

原创 Python连接MySQL insert插入语句

连接数据库import pymysqlconn = pymysql.Connect(host='127.0.0.1', port=3306,user='root',password='123456', db='study', charset='utf8')获取游标cursor = conn.cursor()执行操作try: sql = 'insert into news (IID,url,title,author,content,`da

2021-11-21 16:20:29 2336

原创 Scrapy爬虫步骤

项目创建项目名字为 mgyxw,在自己任何目录下都可以指令为 scrapy startproject mgyxw1建立spider根据命令行提示 建立我的spider news指令为 cd mgyxw1 scrapy genspider news mgyxw.cn建立爬虫执行入口 from scrapy import cmdline cmdline.execute("scrapy crawl mgyxw1".split())...

2021-11-20 16:03:16 445

原创 springboot RequestParam和PathVaribale

https://blog.csdn.net/yunfeng482/article/details/79756233?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_title~default-8.no_search_link&spm=1001.2101.3001.4242.5

2021-11-20 00:13:39 288

原创 渲染HTML中的字符串并保留空格和换行符

从数据库渲染到前端HTML时默认情况下很多字符包含换行符\u000d\u000a是不会被渲染的,被浏览器直接显示为多个 /内码为\u0020\u000d\u000a\u000d\u000a\u0026\u0023\u0031\u0036\u0030\u003b(可能不准确)。对此情况网上找到遇见跟我一样问题的帖子https://www.imooc.com/wenda/detail/597381解决方法div{ white-space: pre-wrap; }我测试

2021-11-18 19:25:02 1254

原创 【thymeleaf】Thymeleaf引入css js写法

https://blog.csdn.net/daemon_slp/article/details/108127950这里是引用经常找不到文件位置@font-face { font-family: "menk"; src: url("/fonts/MQG8103.ttf"); }<link rel="stylesheet" type="text/css" href="/css/iconfont.css">...

2021-11-18 17:43:11 517

原创 thyemleaf onclick事件

th:οnclick="judgeContent([[${doc.IID}]])"maven spring boot <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.6</version&gt

2021-11-18 09:25:20 40

原创 springboot项目中 templates包下的html代码无法引入 static 下的静态文件

当用模板thymleaf时html文件放在template文件夹下面,static文件夹下放字体,css等文件时src: url("./fonts/MenkGarqag.woff");在没有改变默认路径配置的情况下,以上代码便可以访问,在application配置里没有多余的配置。...

2021-11-17 13:10:09 1265

原创 【无标题】

报错 、、、template: “class path resource [templates/index.html]” - line 1, col 1博主说的命名空间问题https://blog.csdn.net/gl19980514/article/details/98474773

2021-11-17 12:33:08 139

原创 MySQL Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)

我的问题是因为指令错误导致的正确指令应该是mysql -uroot -p

2021-11-16 23:53:25 1665 1

原创 springboot mysql jdbc配置

springboot jdbc配置spring: datasource: driverClassName: com.mysql.cj.jdbc.Driver url: jdbc:mysql://192.168.0.100:3306/easyexcel?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false username: root pas

2021-11-16 21:30:58 955

原创 2021-11-08

蒙古文csv文件处理中用excel打开时的乱码问题python写入蒙古文csv件时,doc_path = os.path.join(data_path, 'hijig.csv') with open(doc_path,'a',encoding='utf-8') as f:具体操作如下:windows记事本打开-》另存为-》编码格式转换为带bom的utf-8格式就可以了https://www.zhihu.com/question/21869078...

2021-11-08 16:48:06 189

原创 2021-11-08

@TOC爬虫中的xpath在table中的循环使用table的xpath,去掉tbodyurl_list = response.xpath(’//*[@id=“ctl00_cph_myDataList”]/tr//td’)for url in url_list:print(url)href = url.xpath(’.//span//a/@href’).extract_first()print(href)# self.url_list.append(self.pre_url+href)pri

2021-11-08 15:57:45 183

原创 关于logstash解析json数据到ES遇到的坑

关于logstash解析json数据到ES遇到的坑停在Successfully started Logstash API endpoint {:port=>9600}的问题sincedb_path的问题json文件格式不对停在Successfully started Logstash API endpoint {:port=>9600}的问题出现这样的原因可能有几下几种sincedb_path的问题windows下设置logstash config文件里的sincedb_path =&g

2020-12-22 01:46:45 1439 1

原创 关于maven粘贴配置报错的问题。Element ‘xxxxxxx‘ cannot have character [children],because the type‘s content type

主要是标点符号、多余的空格等问题

2020-11-20 16:16:53 99

原创 BottomNavigationBar actionbar隐藏以及title默认不显示

不用theme来隐藏actionbar

2020-04-10 20:51:27 627

原创 关于amd处理器如何解决This computer does not support Intel Virtualization Technology(VT-x)

转载!!!关于amd处理器如何解决This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed. Please ensure Hyper-V is disabled in Windo...

2020-03-31 11:04:00 3333

原创 学习笔记(01):智能问答与深度学习 -使用Jupyter Notebook1

由浅入深的讲授人工智能,机器学习,深度学习的原理和实现,尤其会重点介绍搜索引擎和自然语言处理等热门技术,不但会用生动的例子帮助学员理解理论知识,还会手把手详细示范动手实践环节,让学员能够亲自实现一个智能问答系统。...

2019-08-30 15:33:52 149

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除