python中双下划线的作用(1)所有以双下划线开头的成员是私有的(2)python对于私有变量是会进行扎压(mangling)的,扎压规则是原始定义:class A(): __function(): print '__function is private! '扎压之后:class A(): _A...
分类:
编程语言 时间:
2014-08-25 13:11:24
阅读次数:
227
http://www.aikaiyuan.com/5318.html对Web服务做Performance & Load测试,最常见的工具有Apache Benchmark俗称ab和商用工具LoadRunner。ab简单直接,功能也相对较弱,但我们经常看到的对一些Web server或者Framewo...
分类:
编程语言 时间:
2014-08-25 13:10:24
阅读次数:
275
List与Tuple
Python内置2种有序列表。List是可变数组,Tuple是不可变数组。
List范例:
Girls =['LiuJingjing','ZhangHuixin','YeFei']
-用len()函数获得list元素个数。
-索引位置从0开始,最后一个元素的索引是-1
Girls[-1]...
分类:
编程语言 时间:
2014-08-25 11:56:54
阅读次数:
241
1.背景 最大似然估计是概率论中常常涉及到的一种统计方法。大体的思想是,在知道概率密度f的前提下,我们进行一次采样,就可以根据f来计算这个采样实现的可能性。当然最大似然可以有很多变化,这里实现一种简单的,实际项目需要的时候可以再更改。 博主是参照wiki来学习的,地址请点击我 这里实现的是特别简单的例子如下(摘自wiki的最大似然)离散分布,离散...
分类:
编程语言 时间:
2014-08-25 11:53:54
阅读次数:
1655
[root@livecdyum.repos.d]#yuminstalllivecd-toolssyslinuxanaconda-runtimeLoadedplugins:fastestmirror,refresh-packagekit,securityLoadingmirrorspeedsfromcachedhostfile*base:centos.ustc.edu.cn*extras:centos.ustc.edu.cn*updates:mirrors.pubyun.comlivecd|951B00:00l..
分类:
编程语言 时间:
2014-08-25 10:09:05
阅读次数:
1348
Problem 36
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
(Please...
分类:
其他好文 时间:
2014-08-25 10:06:04
阅读次数:
198
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:
编程语言 时间:
2014-08-25 06:33:53
阅读次数:
277
================================Person.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Collections;
namespaceConsoleApplication2
{
publicclassPerson:IComparable<Person>,IForm..
分类:
其他好文 时间:
2014-08-25 02:20:54
阅读次数:
197
setup.py install 报错
error: command 'mt.exe' failed: No such file or directory
或者 Unable to find vcvarsall.bat
于是 用 setup.py insall build --compiler=mingw32
担心没装 mingw32,但是喜悦地发现以前装 ...
分类:
其他好文 时间:
2014-08-25 02:20:13
阅读次数:
238