码迷,mamicode.com
首页 >  
搜索关键字:filepath    ( 875个结果
vb.net 读写ini文件示例
Imports System.Collections.Generic Imports System.Text Imports System.Runtime.InteropServices Public Class IniFile Public filePath As String <DllImpor... ...
分类:Web程序   时间:2019-10-11 12:39:51    阅读次数:92
Office激活代码
代码一:@echo off(cd /d "%~dp0")&&(NET FILE||(powershell start-process -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1title Office 2019 Activator r/Pira... ...
分类:其他好文   时间:2019-10-06 20:25:27    阅读次数:1973
python 递归和二分法查找
2. 递归(方法二:) import os filePath = "d:/untitled" def read(filePath, n): # n 递归深度 it = os.listdir(filePath) # listdir 查看(打开)文件夹中的文件 # print("__iter__" in ...
分类:编程语言   时间:2019-10-03 13:10:47    阅读次数:83
go实现文件的上传
上传端 send.go package main import ( "fmt" "io" "net" "os") func main() { fmt.Println("请输入要传输的文件") var filePath string fmt.Scan(&filePath) info,err := os ...
分类:Web程序   时间:2019-10-02 18:35:00    阅读次数:96
关于流的转换
/** * file文件转byte数组 * */public byte[] fileToByte(String filePath){ byte[] data = null; FileInputStream fis = null; ByteArrayOutputStream baos = null; ... ...
分类:其他好文   时间:2019-09-24 17:51:23    阅读次数:86
C++读写文件
使用 ifstream 然后对C++进行文件的读取 头文件 读取代码段 C++ int main() { string buffer, filepath = "test.txt"; ifstream myfile(filepath.c_str()); //等同于 ifstream myfile("t ...
分类:编程语言   时间:2019-09-18 10:48:39    阅读次数:107
python读取excel文件
# 最近写项目需要,通过读取excel文件导入数据至数据库 安装模块: pip install xlrd 导入模块: import xlrd 拿到操作excel句柄,读取excel文件: workbook = xlrd.open_workbook(filepath) 拿到sheet句柄: (1) 通 ...
分类:编程语言   时间:2019-09-14 00:48:51    阅读次数:85
Opencv:图片中检测人脸并保存
import cv2 filepath = "xxxx" img = cv2.imread(filepath) # 读取图片 gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # 转换灰色 # OpenCV人脸识别分类器 classifier = cv2.Ca... ...
分类:其他好文   时间:2019-09-12 09:41:47    阅读次数:266
XML
private string filePath = string.Empty; private XmlDocument xmlDoc = new XmlDocument(); public XmlHelper(string _filePath) { filePath = _filePath; if ...
分类:其他好文   时间:2019-09-11 23:57:04    阅读次数:170
Eclipse插件开发中File和IFile的转换
(1) File转IFile 第一种方法: IFile[] ifile = ResourcesPlugin.getWorkspace().getRoot().findFilesForLocationURI(file.toURI()); 第二种方法: String filepath =file.get ...
分类:系统相关   时间:2019-08-29 11:16:43    阅读次数:126
875条   上一页 1 ... 11 12 13 14 15 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!