#coding=utf-8 #Naive Bayes #Calculate the Prob. of class:clsdef P(data,cls_val,cls_name="class"): cnt = 0.0 for e in data: if e[cls_name] == cls_val: ...
分类:
其他好文 时间:
2017-04-25 23:31:06
阅读次数:
208
写在前面的话:由于是昨天装的,很多图片没来得及及时的保存,只好凭记忆回想,出现的问题只能回忆起大致的操作及应用软件。 另外,目前是小白一枚。 在安装时,我一开始想直接采用硬盘安装,参考帖子:http://www.linuxidc.com/Linux/2014-10/108430p3.htm 但是所有 ...
分类:
系统相关 时间:
2017-04-25 23:24:48
阅读次数:
310
Description Input 第一行有四个整数 n, p, k, r,所有整数含义见问题描述。 1 ≤ n ≤ 10^9, 0 ≤ r < k ≤ 50, 2 ≤ p ≤ 2^30 ? 1 第一行有四个整数 n, p, k, r,所有整数含义见问题描述。 1 ≤ n ≤ 10^9, 0 ≤ r ...
分类:
其他好文 时间:
2017-04-25 22:22:08
阅读次数:
396
效果等同于ipconfig /flushdns 命令。DnsFlushResolverCache 函数是在Dnsapi.dll导出,该函数没有任何参数。MSDN中找不到他,看来是个Undocumented函数,函数原型: BOOL WINAPI DnsFlushResolverCache(VOID) ...
17.4.25 WRONG ANSWERS public class Solution { public int nthSuperUglyNumber(int n, int[] primes) { int len = primes.length; int[] pw = new int[len];// ...
分类:
其他好文 时间:
2017-04-25 22:16:59
阅读次数:
115
document.write((new Boolean())+"<br />"); document.write((new Boolean(""))+"<br />"); document.write((new Boolean(0))+"<br />"); document.write((new B ...
分类:
Web程序 时间:
2017-04-25 22:15:57
阅读次数:
192
<form action="/Project/XiangMuChaXun/Seach" method="post"> <input id="ProjectNumber" name="ProjectNumber"> <button type="submit" class="clearSelection ...
分类:
Web程序 时间:
2017-04-25 21:29:26
阅读次数:
198
update table ucf, table t2 set ucf.pcid = t2.pcid where t2.name = 'liming' and t2.gid= ucf.gid and ucf.id in(474,475,479,482,457,375,461,406,373,374); ...
分类:
数据库 时间:
2017-04-25 21:22:59
阅读次数:
187
题目链接:http://acm.hzau.edu.cn/problem.php?cid=1029&pid=0 Description Once upon a time, there was a little girl. Her name was Little Red Riding Hood. One ...
分类:
其他好文 时间:
2017-04-25 21:22:43
阅读次数:
210