E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
FilePath
python按行匹配文本内容
importos#类似于grep,可以筛选出一行来defsimilarGrep():
filePath
=input("pleaseinputapath:")desStr=input("pleaseinputdestinationstring
冯诺依曼01
·
2023-11-04 14:57
python和运维
python
shell之lsof的用法
2)查看谁正在使用某个文件:lsof/
filepath
/file。3)递归查看某个目录的文件信息:lsof+D/
filepath
/
filepath
2/。
付宇利
·
2023-11-04 10:55
linux
shell
powershell 如何读取 ini 文件?
#定义参数param([String]$
filePath
,[String]$section,[String]$key)#WindowsAPI函数声明$ini=Add-Type-memberDefinition
dbyoung
·
2023-11-04 08:13
powershell
cmd
ini
windows
api
通用MultipartFile 文件上传下载、前端页面显示、下载在浏览器左下角显示
@Slf4j@ServicepublicclassCommonServiceImplimplementsCommonService{@Value("${upload.
filePath
}")privateStringfilePath
Dotclv
·
2023-11-04 06:57
个人笔记
Java
java
spring
boot
dart实现回溯解决leetcode39、40、46、47、78、90
leetcode-cn.com/problems/combination-sum/1.2代码//////Author:
[email protected]
///Date:2020-11-2308:44:26///
FilePath
锦鲤跃龙
·
2023-11-04 05:32
小程序上传文件
consttempFilePaths=res.tempFilePathswx.uploadFile({url:'https://example.weixin.qq.com/upload',//仅为示例,非真实的接口地址
filePath
Hello.鑫
·
2023-11-03 19:59
小程序
OpenCV编译参数一览
全部参数一览://Pathtoaprogram.ANT_EXECUTABLE:
FILEPATH
=D:/apache-ant-1.10.1/bin/ant.bat//BuildCUDAmodulesstubswhennoCUDASDKBUILD_CUDA_STUBS
SeventhBlue
·
2023-11-03 16:31
opencv
Java读取txt文件和覆盖写入txt文件和追加写入txt
//构造函数中的第二个参数true表示以追加形式写文件FileWriterfw=newFileWriter(
filePath
,true);
Seachal
·
2023-11-03 09:22
Android Java webview 加载本地html
方法一:直接加载文件finalStringfilePath="file:///android_asset/privacy_terms/privacy.html";webView.loadUrl(
filePath
LovelyYilia
·
2023-11-03 09:07
python连接clickhouse (CK)
[email protected]
:2023-11-0111:28:58LastEditors:
[email protected]
:2023-11-0111:36:25
FilePath
你的凯子很吊
·
2023-11-03 02:33
clickhouse
vscode for mac中无法安装code命令
弹出提示框并报错Error:EACCES:permissiondenied,unlink'/usr/local/bin/code'解决方案打开终端面板,运行一下命令sudochown-R[username][
filePath
Coder__T
·
2023-11-02 18:31
【MongoDB】Windows 安装MongoDB 6.0
解压这里我将压缩包解压到了D盘,并重命名成了mongodb,解压后的目录如下:2、创建配置文件在D:\mongodb下新建conf目录,并创建mongod.conf配置文件:systemLog:destination:
filepath
Mointor
·
2023-11-02 16:12
MongoDB
mongodb
数据库
C# 绘制EMF图片
intheigth){try{Bitmapbmp=newBitmap(width,heigth);Graphicsgs=Graphics.FromImage(bmp);Metafilemf=newMetafile(
filePath
TerraJuly
·
2023-11-02 14:37
c#
开发语言
mongo常用操作
etc/mongod.conf3、/usr/local/etc/mongod.conf:所有数据保存的位置、日志信息都在此文件中、端开口号配置等都在这里记录systemLog:destination:
filepath
Mikaelemmmm
·
2023-11-02 08:39
mongo
android java 写入文件夹_Android 建立文件夹、生成文件并写入文本文件内容
privatevoidinitData(){StringfilePath="/sdcard/Test/";StringfileName="log.txt";writeTxtToFile("txtcontent",
filePath
weixin_39677027
·
2023-11-02 05:01
android
java
写入文件夹
2019-02-07 利用面向对象依次打开文件
每日散记importosos.chdir(r'
filepath
')classxia:def__init__(self):self.i=0self.file_data=os.listdir('.')defrun
快乐的夏天_eaf9
·
2023-11-02 00:32
关于readline方法使用的一个中文乱码引发的思考
BufferedReaderreader;try{reader=newBufferedReader(newFileReader(
filePath
));Stringline=reader.readLine
蓝奕世
·
2023-11-01 15:40
windows
linux
java
python
pythonimportnumpyasnpimportpandasaspdfromsklearn.clusterimportKMeansimportmatplotlib.pyplotaspltimportseabornassnsdefloadData(
filePath
璞玉牧之
·
2023-11-01 10:32
深度学习
Python 编码转换问题(gbk->utf-8)
#
filepath
--原文件路径#savefilepath--转换后文件存储路径(默认=原文件路径)#oldencoding--原文件的编码格式#newencoding--转换后文件的编码格式importosimporttimedefconvert_xml_encoding
CN.LG
·
2023-11-01 08:09
python
服务器
EasyExcel - 动态头多Sheet示例记录
(StringfilePath,ListsheetNames,Map>>headMap,Map>>contentMap){ExcelWriterexcelWriter=EasyExcel.write(
filePath
怪瘦丶
·
2023-11-01 00:25
个人记录
java
微信小程序上传图片
reject)=>{lettoken=uni.getStorageSync(keys.token);uni.uploadFile({url:‘oss上传图片地址’,name:'file',file:file,
filePath
KAGHQ
·
2023-10-31 06:28
小程序
微信小程序
小程序
QT+Win平台,打开文件所在路径文件夹,并高亮选中文件
voidWidget::openFile(constQString&
filepath
){//
filepath
文件路径constQStringexplorer="explorer";QStringListparam
逆风的雲
·
2023-10-31 05:57
QT
C++
qt
开发语言
golang api获取客户端地址
/**@Author:lmy*@Date:2023-10-3010:24:11*@LastEditors:lmy*@LastEditTime:2023-10-3015:28:27*@
FilePath
:\
lmy_loveF
·
2023-10-30 17:15
golang
开发语言
后端
ios视频播放
//本地资源文件NSString*
filePath
=[[NSBundlemainBundle]pathForResource:@"111.mp4"ofType:nil];//创建视频播放控制器AVPlayerViewController
傻人有傻福i
·
2023-10-30 14:49
使用python将ppt文件批量转为pptx、批量提取ppt中的文字保存
importosfrompptximportPresentationfromdocximportDocumentimportos.pathimportwin32com.clientclassPPT2Word(object):"""将
filepath
手撕易拉罐
·
2023-10-30 05:26
python
Python shelve模块保存变量
将变量写进文件中,shelfFile就像一个字典importshelveshelfFile=shelve.open(
filePath
)color=['blue','red','green']shelfFile
守望者_4036
·
2023-10-30 02:05
OpenCV中cv2的常见用法
一、读入图像使用函数cv2.imread(
filepath
,flags)读入一副图片
filepath
:要读入图片的完整路径flags:读入图片的标志cv2.IMREAD_COLOR:默认参数,读入一副彩色图片
Edenms
·
2023-10-30 01:37
opencv
python
[js异步编程]手写一个Promise
Date:2021-07-0823:33:30*@LastEditors:sunxy*@LastEditTime:2021-07-1123:30:18*@Description:手写promise*@
FilePath
孙二柯
·
2023-10-29 21:02
springboot类路径下excel、word文件下载为空和打不开记录
StringfilePath=System.getProperty("user.dir")+"\\src\\main\\resource\\staitc\\"+fileName;Filefile=newFile(
filePath
丶黑白格
·
2023-10-29 17:50
spring
boot
excel
word
PHP下载文件
/** *文件下载 *@param $
filepath
源文件路径 */ function dwon_file($
filepath
){ if(file_exists($
filepath
)){ header
季夏梧桐
·
2023-10-29 09:02
php
开发语言
【EMGU】读取视频AVI文件+保存任意帧为图片
publicvoidVideoCatch(stringfilepath){try{IntPtrCatchFrame=CvInvoke.cvCreateFileCapture(
filepath
);CvInvo
NopDes1re
·
2023-10-29 06:21
C#
.Net
OpenCv
从视频中提取图片
python数据写入到excel不同sheet_python读取数据写入excel的四种操作
xlsxwriter几种xlutils结合xlrd:操作的是以xls后缀的excel,读取文件保留原格式:加:formatting_info=True常用方法:1、打开xls:open_workbook(
filePath
weixin_39664010
·
2023-10-29 01:15
Hive 常用DML操作
本专栏案例数据集链接:https://download.csdn.net/download/shangjg03/884780381.加载文件数据到表1.1语法LOADDATA[LOCAL] INPATH '
filepath
shangjg3
·
2023-10-29 00:19
Hive
hive
hadoop
数据仓库
Qt文件 I/O 操作
一.QFile文件读取QIODevice::ReadOnlyQStringfilePath="/home/chenlang/RepUtils/1.txt";QFilefile(
filePath
);1.逐行读取
djykkkkkk
·
2023-10-28 12:45
qt
开发语言
linux里如何创建c文件夹,使用c语言在Linux中的/ tmp文件夹中创建文本文件
char*
filePath
="/tmp/thefile.txt";'fi
肖恩的秘密
·
2023-10-28 10:12
linux里如何创建c文件夹
使用BuferedReader读取一个文本文件,为每行加上行号
publicclassHomework02{publicstaticvoidmain(String[]args)throwsIOException{StringfilePath="E:\\aa.txt";Filefile=newFile(
filePath
袅沫
·
2023-10-28 10:40
韩顺平java习题
java
服务器
linux
向指定文件夹创建文件,并且写入信息
publicstaticvoidmain(String[]args)throwsIOException{StringfilePath="E:\\mytemp";Filefile=newFile(
filePath
袅沫
·
2023-10-28 10:24
韩顺平java习题
java
前端
开发语言
微信小程序保存照片
canvas",//你想要保存的那个canvas画布的IDfail:function(r){console.log(r)},success:(res)=>{wx.saveImageToPhotosAlbum({
filePath
HonneyHao
·
2023-10-28 10:08
Qt保存JSON类型的文件或者json二进制文件
QFileloadFile(
FilePath
);if(!loadFile.exists())//文件不存在QMessageBox::information(0,"in
风赤
·
2023-10-28 07:23
Qt
json
qt
开发语言
使用BufferWriter进行文件的写入操作
Stringfilepath="e:\\ABC.txt";//创建BufferedWrite对象BufferedWriterbufferedWriter=newBufferedWriter(newFileWriter(
filepath
袅沫
·
2023-10-28 02:24
韩顺平java习题
java
开发语言
Python 合并文件
/test/xxxx')#特定目录下的文件存入列表f=open('result.txt','w')#打开当前目录下的result.txt文件,如果没有则创建forfileinfiles:
filepath
云上小白鸽
·
2023-10-27 17:00
vue+golang上传微信头像
上传头像转化格式*/uploadFile(avatarUrl){uni.uploadFile({url:this.fetch.fileUrl()+'/api/upload/uploadimages',//后台接口
filePath
lmy_loveF
·
2023-10-27 14:30
vue.js
golang
微信
C++:一次性读取文本文件的所有内容
#include#include#includeusingnamespacestd;stringreadFile(conststring&
filePath
){ifstreamfile(
filePath
)
风静如云
·
2023-10-27 05:35
C/C++
c++
在Java中使用FileReader.read()进行读取文件时,为什么乱码?两个方法解决
Testpublicvoidm1(){StringfilePath="e:\\hello.txt";FileReaderfileReader=null;try{fileReader=newFileReader(
filePath
袅沫
·
2023-10-27 03:40
韩顺平java习题
java
开发语言
使用字节流读取文件中的数据的几种方式
Testpublicvoidm1(){StringfilePath="e:\\hello.txt";FileReaderfileReader=null;intdate=0;try{fileReader=newFileReader(
filePath
袅沫
·
2023-10-27 03:34
韩顺平java习题
java
前端
开发语言
Ofiice2019激活方法
:新建一个文本文件,粘贴保存下面代码,文本文档后缀(.txt)直接改成(.bat);@echooff(cd/d"%~dp0")&&(NETFILE||(powershellstart-process-
FilePath
keaiduoduo
·
2023-10-26 23:38
c# Path常用的方法
[]args){//1.获取文件名称或者URL下的文件名称varfilePath=@"F:\book\001SQL优化.pdf";Console.WriteLine(Path.GetFileName(
filePath
假装我不帅
·
2023-10-26 23:30
dotnet
c#
开发语言
GoLang 文件读写
一、读写文件1、使用ioutil,将文件全部读入内存读ioutil.ReadFile(
filePath
)写ioutil.WriteFile(
filePath
,d,0666)2、使用文件指针读file.Read
Bonjour_ming
·
2023-10-26 21:33
golang
go实现文件的读写
读文件1.ioutil.ReadFilepackagemainimport("fmt""io/ioutil")funcmain(){
filePath
:="example.txt"data,err:=ioutil.ReadFile
liulanba
·
2023-10-26 21:31
go
golang
xcode
开发语言
docx添加水印
privatevoidaddWaterMark(StringfilePath)throwsIOException{InputStreamin=newFileInputStream(newFile(
filePath
LitRad
·
2023-10-26 19:12
Java学习
上一页
3
4
5
6
7
8
9
10
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他