Wesley13 Wesley13
3年前
java编程中使用二进制进行权限或状态控制
直接看代码以及注释吧。@Testpublicvoidmain(){//PCWEB端intpc1<<0;//...00011//Android端intandroid1<<
Wesley13 Wesley13
3年前
JAVA 获取未来时间以及Java Calendar类详解
直接上代码:SimpleDateFormatdfnewSimpleDateFormat("yyyyMMddHHmmss");DatedatenewDate();linkMap.put("time_start",df.format(date)"");//交易起
Stella981 Stella981
3年前
Git错误non
当要push代码到git时,出现提示:error:failedtopushsomerefsto...Dealingwith“nonfastforward”errorsFromtimetotimeyoumayencounterthiserrorwhilepushing:1.$ git push
Stella981 Stella981
3年前
Python脚本 from collections import namedtuple 失败
脚本collections.py代码如下!/usr/bin/python3coding:utf8collectionsfromcollectionsimportnamedtuplePointnamedtuple('Point','x','y')
Stella981 Stella981
3年前
Flutter TextField设置默认值默认值和光标位置
主要通过controller实现,具体代码如下TextField(          //输入键盘类型keyboardType:TextInputType.text,autofocus:true,decoration:Inpu
Stella981 Stella981
3年前
Spark用dataframe操作ES
直接上代码:packagecom.suning.scdc.hspark.goods.testimportscala.collection.Seqimportscala.collection.mutable.LinkedListimportorg.apache.spark.SparkConf
Wesley13 Wesley13
3年前
OC之@property和@synthesize
在OC中经常使用get和set方法,但是当成员变量太多的时候,就要敲很多行get和set方法。在xcode4.4之前,为了简洁代码,可以使用@property声明get和set方法:@propertyintage;就相当于:\(void)setAge:(int)age;\(int)age;后面代码可以就当作正常写了get和set
Stella981 Stella981
3年前
C#通过HttpListener实现HTTP监听
代码:usingNLog;usingSystem;usingSystem.Diagnostics;usingSystem.IO;usingSystem.Net;usingSystem.ServiceProcess;usingSystem.Text;usingSy
陈哥聊测试 陈哥聊测试
1年前
5W1H聊开源之Why——为什么要参与开源?
为什么开发者会愿意花费时间和精力编写这些免费公开的代码?
陈哥聊测试 陈哥聊测试
5个月前
自动化会提高测试覆盖率,那测试覆盖率是什么
测试覆盖率是测试质量的度量标准之一,告诉我们测试了多少代码。