解释器信息 platform.python_version(): ?返回的Python版本字符串‘major.minor.patchlevel‘。sys.version有类似功能,但是返回的信息更多。 platform.python_version_tuple(): 返回Python版本 (major, minor, p...
分类:
编程语言 时间:
2015-06-09 10:07:11
阅读次数:
688
This is a application of the Trie data structure, with minor extension. The critical part in this problem is to count all the words that have a partic...
分类:
其他好文 时间:
2015-06-07 17:06:56
阅读次数:
93
开发(一)中,我们介绍了怎么扫描到IBeacon。这节我们去看看怎么修改IBeacon的参数。IBeacon里的参数,主要有这几个name:设备名称major:主参数minor:副参数mac:mac地址UUID:IBeacon的UUID,相当与使用这个模块对映的应用的标识rssi:信号强度txPow...
分类:
移动开发 时间:
2015-05-22 11:19:19
阅读次数:
420
题目链接:
The Dragon of Loowater
题面:
Problem C: The Dragon of Loowater
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.
The shores of Rellau Creek in ...
分类:
其他好文 时间:
2015-05-20 22:27:04
阅读次数:
158
版本命名格式
GNU 风格、Windows 风格
主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]]
Major.Minor[.Revision[.Build]]
示例:1.2.1, 2.0, 5.0.0 build-13124
.Net Framework 风格
主版本号.子版本号[.编译版本号[.修正版本号]]
Major.Minor[.Build[.Revis...
分类:
其他好文 时间:
2015-05-18 01:10:33
阅读次数:
225
一.rpm包的命令格式源程序:name-version.tar.{gz|bz2|xz}version:major.minor.releaserpm包:name-version-release.arch.rpmrelease:通常只包含发行号和os平台el6:redhatenterpriselinuxCentOS5arch:x86_64i386,i586ppc分包:把一个复制的程序打包制作成多个rpm格式二.来源合法性..
分类:
其他好文 时间:
2015-05-17 18:51:53
阅读次数:
412
linux磁盘参数修订
档案代表装置
在linux下面我们都知道可以用相应的档案代表一个装置,比如 /dev/sdb1代表sdb硬盘的第一个分隔槽,该装置通过major和minor来标示对应代替的装置
brw-rw—- 1 root disk 8, 0 5月 12 20:16 /dev/sda
brw-rw—- 1 root disk 8, 1 5月 12 19...
分类:
系统相关 时间:
2015-05-17 09:27:41
阅读次数:
185
1. 对象优先在Eden分配
大多数情况下,对象在新生代Eden区中分配。当Eden区没有足够的空间时,虚拟机将发起一次Minor GC。在如下的测试代码中,尝试分配3个2MB大小和1个4MB大小的对象,在运行时通过参数-Xmx20M,-Xms20M,-Xmn10M这三个参数限制了java堆大小为20MB,不可扩展,其中10MB分配给新生代,剩下的非配给老年代。-XX:SurvivorRatio=8决定了新生代中Eden区与一个Survivor区的比例为8:1,即 Eden: from Survivor:...
分类:
编程语言 时间:
2015-05-14 01:02:54
阅读次数:
134
在看到“Unsupported major.minor version 51.0”这样的错误描述时,就基本可以肯定是jdk版本不正确导致。但是提示的类非业务系统,而是来自IDEA。因此去其官网检索了下关于IDEA中jdk配置的介绍。发现如下帖子:https://intellij-support......
分类:
Web程序 时间:
2015-05-13 16:18:55
阅读次数:
243
Java 的垃圾收集有各种各样的策略,默认的策略也会经常的改变。--比如到底是 serial , parallel, CMS; 具体到 Minor 怎么样,Old 又怎么样?命令 java -XX:+PrintFlagsFinal -version ,提供帮助:bool UseParNewGC .....
分类:
编程语言 时间:
2015-05-13 00:26:37
阅读次数:
232