码迷,mamicode.com
首页 >  
搜索关键字:hats words    ( 2272个结果
xctf-web supersqli
单引号注入,用order by查到了两个column。用union select的时候发现select关键字被过滤了 用分号尝试堆叠注入显示出了两张表 分别查询字段 flag在表1919810931114514中 方法一: words中有字段id,id应该为表单查询语句中的查询字段。可以猜测sql语 ...
分类:数据库   时间:2020-04-07 09:57:41    阅读次数:240
Jieba分词——三国演义上卷节选
import jieba path = 'C:\\Users\\Administrator\\Desktop\\3国演义.txt' text = open(path,'r',encoding='utf-8').read() words = jieba.lcut(text) excludes = [' ...
分类:其他好文   时间:2020-04-07 09:31:11    阅读次数:75
西游记 词频统计
1 import jieba 2 txt=open("D://python_common_exercise//west_journey.txt",'r',encoding="utf-8").read() 3 words=jieba.lcut(txt) #jieba库函数 4 count={} #创建 ...
分类:其他好文   时间:2020-04-05 18:29:41    阅读次数:148
【NLP面试QA】词向量
[TOC] 文本表示哪些方法? 基于one hot、tf idf等的bag of words; 基于词向量的固定表征:word2vec、fastText、glove 基于词向量的动态表征:elmo、GPT、bert one hot存在的问题 one hot表征无法反应词与词之间的相关性问题,即语义鸿 ...
分类:其他好文   时间:2020-04-04 14:34:28    阅读次数:216
leetcode211
1 class TrieNode: 2 def __init__(self): 3 self.words = 0 4 self.edges = [None] * 26 5 6 7 class WordDictionary: 8 def __init__(self): 9 self.root = Tr ...
分类:其他好文   时间:2020-04-04 09:48:52    阅读次数:50
[LeetCode] 30. Substring with Concatenation of All Words
串联所有单词的子串。题意是给定一个字符串 s 和一些长度相同的单词 words。找出 s 中恰好可以由 words 中所有单词串联形成的子串的起始位置。注意子串要与 words 中的单词完全匹配,中间不能有其他字符,但不需要考虑 words 中单词串联的顺序。例子, Example 1: Input ...
分类:其他好文   时间:2020-04-04 09:41:32    阅读次数:63
[CF1200E] Compress Words - KMP
有 $n$ 个单词,想把这个 $n$ 个单词变成一个句子,具体来说就是从左到右依次把两个单词合并成一个单词,合并两个单词的时候,要找到最大的 $i(i\ge 0)$,满足第一个单词的长度为 $i$ 的后缀和第二个单词长度为 $i$ 的前缀相等,然后把第二个单词第 $i$ 位以后的部分接到第一个单词后 ...
分类:其他好文   时间:2020-04-04 00:18:27    阅读次数:50
python敏感词过滤
题目:现在基本上所有的网站都需要设置敏感词过滤,编程查找与敏感词列表相匹配的字符串,如果找到以*号替换,最终得到替换后的字符串。 假设敏感词列表由以下词组成:垃圾,陷阱,不要脸,内幕,辣鸡。 words = ("垃圾","陷阱","不要脸","内幕","辣鸡") text = input() for ...
分类:编程语言   时间:2020-04-03 19:57:53    阅读次数:215
最短编辑距离 72.EditDistance.md
题目描述 Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2. You have the following 3 operations pe ...
分类:其他好文   时间:2020-03-31 18:48:00    阅读次数:81
[LeetCode] 937. Reorder Data in Log Files 日志文件的重新排序
You have an array of . Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier . Then, e ...
分类:编程语言   时间:2020-03-30 09:46:15    阅读次数:93
2272条   上一页 1 ... 12 13 14 15 16 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!