摘要: 单实例模式一直是常用的设计模式,对于python的单实例模式,其实其本身就有实现http://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons-in-python/31887#31... 阅读全文
posted @ 2014-08-08 00:10 Fresher_Z 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 10 interview question on Singleton Pattern in JavaQuestion starts withWhat is Singleton class? Have you used Singleton before? Singleton is a class wh... 阅读全文
posted @ 2014-08-07 23:41 Fresher_Z 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 0x00废话一堆虽说要尊重开发者,但是这个东西,流氓软件。练手用P.S.我不是死宅0x01桃‘’色兑换码看到这个,我还以为里面有什么儿童不宜的东西,兴奋了……APKIDE搜索没有相关“桃色”无果,转unicode\u6843\u8272。就是这里\u5151\u6362\u6210\u529f\uf... 阅读全文
posted @ 2014-07-05 15:21 Fresher_Z 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 在回程的动车上面,感觉这次行程还是让我挺疲惫的。 这次福州比赛只有我们一支外省队伍参赛。我还是挺好奇学院为什么让我们公费过来的,毕竟不同于acm比赛有着悠久的历史和集中式的训练。这应该是我们学校初次以学校名义接触这类比赛。 于我,安全只是一个小兴趣,并没有花太多时间在上面。另外一个师兄也... 阅读全文
posted @ 2014-06-12 19:48 Fresher_Z 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 今天写CPP,用template时候发现总是出错,出来是 undefined reference,指向template,后来google之后发现gcc的模板不能分离编译,就是说,原本.cpp里面的方法实现要写在.h文件里面。这是为啥啊,这定义真有点不爽。 阅读全文
posted @ 2014-04-22 21:46 Fresher_Z 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Question:36Given:12.NumberFormatnf=NumberFormat.getInstance();13.nf.setMaximumFractionDigits(4);14.nf.setMinimumFractionDigits(2);15.Stringa=nf.format... 阅读全文
posted @ 2014-04-22 19:37 Fresher_Z 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Question:31Given:11.Floatpi=newFloat(3.14f);12.if(pi>3){13.System.out.print("piisbiggerthan3.");14.}15.else{16.System.out.print("piisnotbiggerthan3.")... 阅读全文
posted @ 2014-04-21 21:45 Fresher_Z 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Question:27Given:31.//somecodehere32.try{33.//somecodehere34.}catch(SomeExceptionse){35.//somecodehere36.}finally{37.//somecodehere38.}Underwhichthree... 阅读全文
posted @ 2014-04-20 09:17 Fresher_Z 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Question:21Given:1.publicclassTestOneimplementsRunnable{2.publicstaticvoidmain(String[]args)throwsException{3.Threadt=newThread(newTestOne());4.t.star... 阅读全文
posted @ 2014-04-19 08:27 Fresher_Z 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Question: 6Given:1. import java.util.*;2. public class Old {3. public static Object get0(List list) {4. return list.get(0);5. }6. }Which three will co... 阅读全文
posted @ 2014-04-18 16:29 Fresher_Z 阅读(118) 评论(0) 推荐(0) 编辑