zone = { "广东":{ "广州":{ "天河":["天河体育馆","暨南大学"], "越秀":["越秀公园","五羊"] }, "深圳":{ "福田":["市民中心","平安大厦"], "南山":["腾讯","世界之窗"] } }, "湖北":{ "武汉&quo ...
分类:
编程语言 时间:
2017-02-20 14:03:24
阅读次数:
163
iPhone < 5:@media screen and (device-aspect-ratio: 2/3) {} iPhone 5:@media screen and (device-aspect-ratio: 40/71) {} iPhone 6:@media screen and (devi ...
分类:
移动开发 时间:
2017-02-20 11:19:33
阅读次数:
175
一,基本概念 1,了解什么是异常,了解异常和错误的区别; 2,了解异常的分类对,对个大异常分类有基本掌握,至少要掌握五种常见的错误 3,掌握异常处理的三中方式,掌握在合适大的时机使用合适的方式 1,提前预判让异常不发生, 2,异常发生以后使用异常处理机制当场解决, 3,异常发生以后使用抛出机制交由外 ...
分类:
其他好文 时间:
2017-02-19 23:56:48
阅读次数:
331
导入一张大图和导入多张小图哪种更好? —— 这不是本文的内容! 一般动画用的帧图都是在一张大图里的。 切割 1、拖拽一张大图进入Assets/Resources目录下。 注意:只有在Resources目录下的资源才能在代码中被Resources类获取到。 2、进入切割 点击【Sprite Edito ...
分类:
编程语言 时间:
2017-02-19 16:59:59
阅读次数:
4872
方法示例: DecimalFormat df = new DecimalFormat("0.00"); Object price = 2; Object price1 = 2.3; Object price2 = 2.3154; String str = df.format(price); Stri... ...
分类:
其他好文 时间:
2017-02-19 13:00:20
阅读次数:
1509
source .bashrc root@beaglebone:~# route add default gw 192.168.7.1 echo BB-SPIDEV0 > /sys/devices/bone_capemgr.9/slots ...
分类:
其他好文 时间:
2017-02-19 11:02:44
阅读次数:
158
转载请注册出处:http://blog.csdn.net/guolin_blog/article/details/9797169 在上一篇文章中,我们学习了Android Service相关的许多重要内容,包括Service的基本用法、Service和Activity进行通信、Service的销毁方 ...
分类:
移动开发 时间:
2017-02-18 22:36:32
阅读次数:
421
转载请注明原文地址:http://www.cnblogs.com/ygj0930/p/6413978.html 每个开发人员在长久的开发生涯中,都会养成自己的一套开发风格,或者说,规范。之后在开发项目时都会下意识地遵循着心中的规范去设计、开发项目。这种开发风格随着经验和能力的增加会不断修改、演变,由 ...
分类:
其他好文 时间:
2017-02-18 21:31:25
阅读次数:
164
Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would ...
分类:
其他好文 时间:
2017-02-18 20:04:28
阅读次数:
2787
Problem Description Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1 ...
分类:
其他好文 时间:
2017-02-18 18:52:36
阅读次数:
165