码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
HDU-2033
/********************************************************************@file Main_practise.cpp@date 2014-9-11@author Tiger@brief 人见人爱A+B***...
分类:其他好文   时间:2014-09-11 19:18:32    阅读次数:203
HDU 2896 病毒侵袭 AC自动机
题意:给你n个模式串,m个文本串,问你m个文本串中分别出现了几个模式串解题思路:AC自动机模板题,我们只需要把 end 变为 n的序号就行。但是要注意这里所有串的范围解题代码: 1 // File Name: temp.cpp 2 // Author: darkdream 3 // Creat...
分类:其他好文   时间:2014-09-11 19:05:42    阅读次数:181
asp.net下载的方法
public void DownLoad( ){ string filePath = Server.MapPath( @"\UserFile\" );//这里注意了,你得指明要下载文件的路径. if ( System.IO.File.Exists( filePath ) ) ...
分类:Web程序   时间:2014-09-11 18:44:12    阅读次数:195
PHP 配置文件中open_basedir选项作用
如下是php.ini中的原文说明以及默认配置: ; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory or ; per-...
分类:Web程序   时间:2014-09-11 17:39:22    阅读次数:209
linux_shell脚本笔记之二
第二章shell脚本(二)Test文件测试的常见选项有-d:测试是否为目录(directory)-e:测试目录或文件是否存在(exist)-f:测试是否为文件(file)-r:测试当前用户是否有权限读取(read)-w:测试当前用户是否有写入权限(write)-x:测试是否设置有可执行权限(excute)Test常用..
分类:系统相关   时间:2014-09-11 17:33:42    阅读次数:240
HDU 2222 Keywords Search AC自动机
题意:给你n个模式串,问一共有多少个模式串在文本串中出现过解题思路:对于多模式,单文本串的题目显然是要用 AC自动机来解决的,多文本串,单模式串,显然是要用KMP求解的,这也是KMP 和 AC自动机同为字符串匹配的不同之处。解题代码: 1 // File Name: temp.cpp 2 // .....
分类:其他好文   时间:2014-09-11 17:04:42    阅读次数:195
获取文件名后缀
//获取文件名后缀char* fileName = "pwave.sgy";std::string file_str = fileName;int pos = file_str.rfind('.') + 1;std::string temp = file_str.substr( pos );
分类:其他好文   时间:2014-09-11 17:03:42    阅读次数:181
[开源应用]利用HTML5+resumableJs拖拽上传大文件
ASPX File: Resumable.js Test welcome FileHandlerusing System;using System.Collections.Generic;using System.IO;u...
分类:Web程序   时间:2014-09-11 15:17:02    阅读次数:443
sublime text ctags插件使用
1.将其他项目的tag加入我们项目的.tag文件中,实现函数跳转:ctags -R -f "your-tag-file-path" -a "other-project-path" --languages=C但是这个方法比较笨,因为你一旦rebuild tags,就会覆盖掉原先的.tag文件,你又得重...
分类:其他好文   时间:2014-09-11 15:12:02    阅读次数:195
struts2的单个文件上传
本文主要两种方式,一:通过FileUtils.copyFile(file, savefile);方法复制;二:通过字节流方式复制web.xml struts org.apache.struts2.dispatcher.FilterDispatche...
分类:其他好文   时间:2014-09-11 15:10:42    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!