Wesley13 Wesley13
3年前
java 获取 classpath下的配置文件
一获取prop属性文件:/读取属性文件Createdbylgon2017/2/3./publicclassLoadPropertiesFile{publicstaticMap<String,StringloadPropFile(Str
放学路上 放学路上
3年前
python 矩阵转字符串,再转回矩阵
1、矩阵s转字符串sstr:sstrs.tostring()2、字符串sstr转矩阵s:importnumpyasnpsnp.fromstring(sstr,dtypefloat).reshape(矩阵s维度,矩阵s维度)
ThinkPHP V5.0 图片上传base64
/单图上传@returnbool|mixed|string/protectedfunctionuploadingqrcode($images'',$name'')if(empty($images))$thisresult($images,0,'图片错误');if(pregmatch('/^(data:\simag
Stella981 Stella981
3年前
SQLite时间函数&日期时间、字符串、时间戳互相转换
‘now’为当前日期时间\\转字符串、时间SELECTdate('now');  结果:20180505SELECTtime('now');  结果:06:55:38SELECTdatetime('now');结果:2018050506:55:38SELECTstrftime(
Stella981 Stella981
3年前
JVM调优YoungGC
先上代码:主函数:1.publicclassGCDemo{3.publicstaticvoidmain(String\\args)throwsInterruptedException{6.List<GCDataObjectlistnewArrayList<GCDat
Stella981 Stella981
3年前
Android 显示网页图片
原WebView web;String url;web.getSettings().setUseWideViewPort(true);web.getSettings().setLoadWithOverviewMode(true);web.getSettings().setDisplayZoomControl
Stella981 Stella981
3年前
Egret 类的创建和继承
classtestextendsegret.DisplayObjectContainer{/类的创建///属性name:string;age:number;ts:test;//可传参的构造方法publicconst
Wesley13 Wesley13
3年前
Java判断中文字符串是否乱码
转自CSDN一个博主的文章,感觉很有用,转发收藏一下。importjava.util.regex.Matcher;importjava.util.regex.Pattern;publicclassChineseUtill{privatestaticbooleanisChinese
Wesley13 Wesley13
3年前
MyBatis 问题
nestedexceptionisorg.apache.ibatis.reflection.ReflectionException:Thereisnogetterforpropertynamed in'classjava.lang.String'Mapper.xml是这样的<selectid"findPl
Stella981 Stella981
3年前
JavaScript开发常用工具函数
1、isStatic:检测数据是不是除了symbol外的原始数据functionisStatic(value){return(typeofvalue'string'||typeofvalue