风花雪月 风花雪月
4年前
读取csv文件编码的方法
withopen(fpath,'rb')asf:resultchardet.detect(f.read())eresult'encoding'print(e)
Wesley13 Wesley13
3年前
java 反射方法异常处理 InvocationTargetException
项目使用了反射进行方法调用,被调用的方法内抛出自己封装的Exception,外部无法捕捉到自定义Exception,捕捉到InvocationTargetException。java.lang.ClassCastException:java.lang.reflect.InvocationTargetExceptioncannotb
Stella981 Stella981
3年前
Linux配置本地Yum仓库方法
Linux配置本地Yum仓库方法一、服务端:显示光盘的内容,挂载光驱设备root@WXR~mount/dev/cdrom/mnt/二、客户端:书写客户端配置文件,指定服务端位置
Easter79 Easter79
3年前
String的相关类和方法
String的相关类和方法一、String,StringBuilder,StringBuffer三者的区别这三个类之间的区别主要是在两个方面,即运行速度和线程安全这两方面1、运行速度:StringBuilderStringBufferStringString为字符串常量,而StringBuilder和StringBuffe
Stella981 Stella981
3年前
PHP fastcgi_finish_request 方法
https://www.jianshu.com/p/bf55c803b70bhttp://www.laruence.com/2011/04/13/1991.html本文介绍,PHP运行在FastCGI模式时,FPM提供的方法:fastcgi\_finish\_request。在说这个方法之前,我们先了解PHP有哪些常用的运行模式?PHP运
Easter79 Easter79
3年前
Spring方式初始化方法
第一种:实现ApplicationListener<ContextRefreshedEvent接口packagebdc.base;importjava.util.HashMap;importjava.util.List;importjava.util.Map;impor
Wesley13 Wesley13
3年前
PHP调用外部程序的方法
很多情况下需要php调用其他程序如shell命令、shell脚本、可执行程序等等,此时需要使用到诸如exec/system/popen/proc\_open等函数,每种函数有各自适合使用的场景以及需要注意的地方。前提:PHP没有运行在安全模式如果PHP运行在安全模式下,那么在执行外部命令、打开文件、连接数据库、基于HTTP的认证这4
Stella981 Stella981
3年前
Aliyun发送短信接口调用方法
aliyun新版发送短信讲的不是很清晰,初次使用一堆dll不知道用哪个,以.net为例申请SignName与Template\_code请先申请,一般两个小时能通过一、https://help.aliyun.com/document\_detail/55359.html?spm5176.doc55288.6.564.OcWmAm1.\JAV
Wesley13 Wesley13
3年前
C#:调用存储过程方法
MySqlParameterp1newMySqlParameter("id",MySqlDbType.Int32);p1.Valuesid;MySqlParameterp2newMySqlParameter("result",MySqlDb
Stella981 Stella981
3年前
JS关于Array的方法介绍
Array.length:数组的一条属性。基本用法:letarray1,2,3,4,5;console.log(array.length);//5Array.prototype:数组原型console.log(Array.prototype);//ObjectArray.isArr