会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Smartisan
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
53
下一页
2020年11月21日
Java 遍历map的四种方法
摘要: public static void main(String[] args) { // 循环遍历Map的4中方法 Map<Integer, Integer> map = new HashMap<Integer, Integer>(); map.put(1, 2); // 1. entrySet遍历,
阅读全文
posted @ 2020-11-21 20:39 博二爷
阅读(110)
评论(0)
推荐(0)
2020年11月16日
Kali Linux 中文方框乱码解决方案
摘要: 来源:https://blog.csdn.net/u011672712/article/details/103393297 1、安装KALI2019.4版本后会出现乱码问题 2、更新国内源,使用vim编辑器修改:vim /etc/apt/sources.list添加 #清华大学 [更新源] deb
阅读全文
posted @ 2020-11-16 15:51 博二爷
阅读(734)
评论(0)
推荐(0)
2020年11月15日
SQL注入以及漏洞扫描学习,工具整理
摘要: 详细请看:https://mubu.com/doc/7m3poBzabXi SQL注入_工具与指南 使用工具: sqlmap 链接:https://pan.baidu.com/s/1xdncbzZfE864WjeHfJWTHw 提取码:9vd1 抓包工具:burp suite 链接:https://
阅读全文
posted @ 2020-11-15 21:17 博二爷
阅读(2288)
评论(0)
推荐(0)
2020年11月8日
备忘:Tensorflow -GPU 配置
摘要: tf 1.13.1 cuda 10.0 cudnn7.4.1 python 3.7
阅读全文
posted @ 2020-11-08 19:00 博二爷
阅读(98)
评论(0)
推荐(0)
2020年11月3日
由于在pyhanlp中使用load_dictionary没有作用,亲测一种实际有效的方法
摘要: 一、看到相关教程,有一个添加字典的方法,亲测无效: 1 # -*- coding:utf-8 -*- 2 # Author:hankcs 3 # Date: 2018-05-24 22:11 4 # 《自然语言处理入门》2.2.2 词典的加载 5 # 配套书籍:http://nlp.hankcs.c
阅读全文
posted @ 2020-11-03 19:27 博二爷
阅读(447)
评论(0)
推荐(0)
2020年10月30日
解决pachrm控制台经常输出乱码汉字(调用java接口时)
摘要: 来源:https://blog.csdn.net/weixin_42261489/article/details/80890955 把上图中的IDE Encoding设置为GBK后,在运行程序,中文目录就显示正常了,如下图所示。 据说是因为ide编码不能设置为utf-8,需要设置为gdb,因为这个控
阅读全文
posted @ 2020-10-30 22:17 博二爷
阅读(146)
评论(0)
推荐(1)
2020年10月28日
python 好久不用,基础重拾系列(1999年2月15日转年龄)
摘要: 直接给代码: 1 import time 2 import datetime 3 import re 4 5 import datetime 6 7 8 def calculate_age(date): 9 year="".join(re.findall("^(.+?)年",date)) 10 mo
阅读全文
posted @ 2020-10-28 16:46 博二爷
阅读(86)
评论(0)
推荐(0)
2020年10月27日
python 好久不用,基础重拾系列(正则标志列表)
摘要: A/ASCII 对于\w\W\d\D\b\B\s\S只进行ASCII匹配(仅适用于Python3.X) I/IGNORECASE 执行不区分字母大小写的匹配 M/MULTILINE 将^和$用于包括整个字符串的开始和结尾的每一行(默认情况下,仅适用于整个字符串的开始和结尾处) S/DOTALL 使用
阅读全文
posted @ 2020-10-27 23:14 博二爷
阅读(99)
评论(0)
推荐(0)
python 好久不用,基础重拾系列(1,List转str;2,快速在字符串中查找到特定小字符串)
摘要: 代码: List2str: 1 def List2Str(list): 2 value=[str(i) for i in list] 3 Value_str=''.join(value) 4 return Value_str 快速查找字符串: 1 import re 2 text = "/User/
阅读全文
posted @ 2020-10-27 22:54 博二爷
阅读(129)
评论(0)
推荐(0)
python 好久不用,基础重拾系列(1,读取word(.doc&&.docx)2,批量转换.doc为.docx后缀 3,相对地址转绝对地址)
摘要: 直接给代码,因为注释已经很详细了。 1 #读取docx中的文本代码示例 2 import docx 3 import os 4 from win32com import client as wc 5 #将doc转成docx 6 def doSaveAas(doc_path,docx_path): 7
阅读全文
posted @ 2020-10-27 21:12 博二爷
阅读(250)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
53
下一页
公告