1.collocations模块 用于计算一组单词中,没window_size个单词中n个词同时出现的次数 from nltk.collocations import * sent = 'this this is is a a test test'.split() b = BigramColloca ...
分类:
其他好文 时间:
2020-03-12 09:28:25
阅读次数:
55
1.安装依赖 npm i url-loader -D file-loader 解决CSS等文件中的引入图片路径问题 url-loader 当图片小于limit的时候会把图片BASE64编码,大于limit参数的时候还是使用file-loader 进行拷贝 2.js 中使用图片 import logo ...
分类:
Web程序 时间:
2020-03-11 23:59:20
阅读次数:
106
File Upload(文件上传) File Upload,即文件上传漏洞,通常是由于对上传文件的类型、内容没有进行严格的过滤、检查,使得攻击者可以通过上传木马获取服务器的webshell权限,因此文件上传漏洞带来的危害常常是毁灭性的,Apache、Tomcat、Nginx等都曝出过文件上传漏洞。 ...
分类:
Web程序 时间:
2020-03-11 23:45:29
阅读次数:
89
<?php //end() 与 count($array)-1 的区别 $filename = 'a.b.c.jpg'; $array = explode('.', $filename); echo end($array); echo $array[count($array)-1]; $array ...
分类:
其他好文 时间:
2020-03-11 23:44:43
阅读次数:
62
1105 Spiral Matrix (25分) This time your job is to fill a sequence of N positive integers into a spiral matrix in non increasing order. A spiral matrix ...
分类:
其他好文 时间:
2020-03-11 23:40:07
阅读次数:
75
<?php echo $_POST['username']; echo $_POST['password']; //获取上传文件的名称 $filename = $_FILES['file']['name']; //获取上传文件的错误代码 $error = $_FILES['file']['error ...
分类:
Web程序 时间:
2020-03-11 23:36:32
阅读次数:
85
<?php //单个文件上传时的数组结构如下: $array = [ 'file' => [ 'name' => '', 'size' => '', 'error' => '', 'type' => '', 'tmp_name' => '', ...
分类:
Web程序 时间:
2020-03-11 23:33:49
阅读次数:
77
<?php if (is_array($_FILES['file']['name'])){ foreach ($_FILES['file']['error'] as $key => $error){ if ($error == UPLOAD_ERR_OK){ //获取当前上传文件的名称(原始名称) ...
分类:
Web程序 时间:
2020-03-11 23:30:27
阅读次数:
80
文件上传 【 https://github.com/Davis Samuel/File Upload/blob/master/JavaWeb%E5%8A%9F%E8%83%BD%E6%89%A9%E5%B1%95.md 】 导入pom依赖: FileServlet.java: web.xml注册se ...
分类:
编程语言 时间:
2020-03-11 20:57:04
阅读次数:
71
目录结构: core\lib\conf.php <?php namespace core\lib; class conf { static public $conf = []; static function get($name,$file) { /* * 1.判断配置文件是否存在 * 2.判断配置 ...
分类:
其他好文 时间:
2020-03-11 19:30:28
阅读次数:
51