摘要:
直接贴代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!--引入.js文件--> <script type="text/javascript" src=".\echart 阅读全文
摘要:
Soup.head.contents Soup.body.contents Forchild in soup.body.children Print(child) 遍历儿子节点 For child in soup.body.children Print(child) 遍历子孙节点 .parent 节 阅读全文
摘要:
(一)贝叶斯理论 1.设x={a1,a2,a3,...,an}为一个待分类项,而a为x的一个特征属性 2.有类别集合C={y1,y2,...,yn} 3.计算P(y1|x), P(y2|x), P(y3|x),...,P(yn|x) 4.比较得出结果 (二)根据训练集计算P(yi|x): 1.统计在 阅读全文
摘要:
图的表示方法: (1)邻接矩阵表示方法 (2)邻接表表示方法 (3)边缘列表表示方法 6 ArrayList , LinkedList, List的区别: List是一个接口,ArrayList, LinkedList分别是用两种不同的数据结构实现的两个类: ArrayList是用数组实现的, Li 阅读全文
摘要:
题目描述: 给定一个正整数 n,你可以做如下操作: 1. 如果 n 是偶数,则用 n / 2替换 n。 2. 如果 n 是奇数,则可以用 n + 1或n - 1替换 n。 问: n 变为 1 所需的最小替换次数是多少? 可见,该题的难点在于n是奇数时,应该是n+1还是n-1。 解法一:递归 当n== 阅读全文
摘要:
怎样将一个字符串中的单词单独存放在一个单词数组里? 运用位运算的方法例举出集合的子集?假设右n个元素 阅读全文
摘要:
1 #include <iostream> 2 #include <cstdio> 3 #include <vector> 4 using namespace std; 5 typedef unsigned char byte; 6 int main() { 7 int x =0x800000002 阅读全文