上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 53 下一页
摘要: 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 博二爷 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 来源: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 博二爷 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 详细请看:https://mubu.com/doc/7m3poBzabXi SQL注入_工具与指南 使用工具: sqlmap 链接:https://pan.baidu.com/s/1xdncbzZfE864WjeHfJWTHw 提取码:9vd1 抓包工具:burp suite 链接:https:// 阅读全文
posted @ 2020-11-15 21:17 博二爷 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: tf 1.13.1 cuda 10.0 cudnn7.4.1 python 3.7 阅读全文
posted @ 2020-11-08 19:00 博二爷 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 一、看到相关教程,有一个添加字典的方法,亲测无效: 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 博二爷 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 来源:https://blog.csdn.net/weixin_42261489/article/details/80890955 把上图中的IDE Encoding设置为GBK后,在运行程序,中文目录就显示正常了,如下图所示。 据说是因为ide编码不能设置为utf-8,需要设置为gdb,因为这个控 阅读全文
posted @ 2020-10-30 22:17 博二爷 阅读(134) 评论(0) 推荐(1) 编辑
摘要: 直接给代码: 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 博二爷 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 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 博二爷 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 代码: 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 博二爷 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 直接给代码,因为注释已经很详细了。 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 博二爷 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 53 下一页