会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不为别的,只为做一个连自己都羡慕的人
升级打怪
与其在别处仰望,不如在这里并肩;与其等待,不如直面。只是记录在平常开发中遇到的问题,如果有哪里写的不对,还请指出,谢谢
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
28
下一页
2021年8月20日
python 删除字符串中连续多个空格并保留一个的方法
摘要: ' '.join(line.split())
阅读全文
posted @ 2021-08-20 16:51 升级打怪
阅读(378)
评论(0)
推荐(0)
2021年8月18日
sql语句修改某字段中包含的特殊字符
摘要: UPDATE news SET content = replace (content,'"',"") where source='china' and publish_time < '2021-07-18' order by publish_time desc
阅读全文
posted @ 2021-08-18 11:21 升级打怪
阅读(426)
评论(0)
推荐(0)
2021年8月13日
Error: Client network socket disconnected before secure TLS connection was established
摘要: 我在下载node的phantomjs,出现如下问题: 解决方式为: npm install phantomjs-prebuilt cnpm --registry=https://registry.npm.taobao.org 将npm的镜像改为国内的即可。
阅读全文
posted @ 2021-08-13 17:29 升级打怪
阅读(8182)
评论(0)
推荐(0)
python对文章词频的统计
摘要: import os import re from nltk import ne_chunk, pos_tag, word_tokenize import nltk from docx import Document import langid import pandas as pd def read
阅读全文
posted @ 2021-08-13 15:52 升级打怪
阅读(87)
评论(0)
推荐(0)
IntelliJ IDEA创建java空项目
摘要: 步骤一:进入idea编辑器中,选择file下面的new 第二步:选择new下面的project 第三步:根据自己 所需要创建项目的选项,创建对应的java项目,我这里使用的是maven 第四步:选择项目所需要的sdk版本,并且选择 create from archetype,点击next,出现: 第
阅读全文
posted @ 2021-08-13 15:48 升级打怪
阅读(481)
评论(0)
推荐(0)
java提取docx文件中的图片
摘要: 使用的maven为: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.17</version> </dependency> 1. 获取docx文件中的所有图片 // 获取wo
阅读全文
posted @ 2021-08-13 11:13 升级打怪
阅读(1287)
评论(0)
推荐(0)
2021年8月3日
vue v-for 循环复选框-默认勾选第一个的实现方法
摘要: 在帮朋友解决问题的时候,随手记录一下。 应用场景:在进行多选的时候一般默认显示第一个。 实现方法:纯vue实现 例子:<span v-for="(one,index) in site"><input type="checkbox" :checked="index == 0" style="verti
阅读全文
posted @ 2021-08-03 16:38 升级打怪
阅读(1287)
评论(0)
推荐(0)
nodejs的request创建的get和post请求,带参数
摘要: 1.导入request ; var request = require('request'); 2.get请求 request({ timeout:5000, // 设置超时 method:'GET', //请求方式 url:'xxx',//url qs:{ //参数,注意get和post的参数设置
阅读全文
posted @ 2021-08-03 09:57 升级打怪
阅读(2051)
评论(0)
推荐(0)
2021年8月2日
python list转换字符串报错TypeError: sequence item 0: expected str instance, int found
摘要: 今天在写代码的时候,报了错TypeError: sequence item 0: expected str instance, int found,我本来是想把json格式转为字符串,之后写入到json里面的,但是忽然间,就出现了问题。 小例子:list1=[1,'two','three',4] p
阅读全文
posted @ 2021-08-02 14:24 升级打怪
阅读(936)
评论(0)
推荐(0)
2021年7月21日
linux常用命令
摘要: 关机命令 shutdown -h now 重启命令: shutdown -r now 查看内存占用情况 ps aux --sort -rss | head 查看当前端口是否占用 netstat -apn |grep 12345 查看进程 ps -aux|grep 12345 虚拟机上编辑文件 vi
阅读全文
posted @ 2021-07-21 18:20 升级打怪
阅读(27)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
28
下一页
公告