上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 44 下一页
摘要: 单一职责原则: 类的职责要单一,不要将太多的职责放在一个类中 开闭原则: 软件实体对扩展是开放的,但对于修改是关闭的,即在不修改一个软件实体的基础上去扩展其功能 里氏代换原则: 在软件系统中,一个可以接受基类对象的地方必然可以接受一个子类对象 依赖倒转原则: 要对抽象层编程,不要针对具体类编程 接口 阅读全文
posted @ 2021-11-19 18:33 风吹过半夏 阅读(106) 评论(0) 推荐(2) 编辑
摘要: MapReduce的实验做的差不多了,但是我对于MapReduce其实根本没有什么理解,知识硬着头皮做实验。 现在通过老师法的PPT对MapReduce有了一个基本了解。 MapReduce: 用于解决大规模的数据处理,最主要的思想就是“分而治之” MapReduce示例:单词计数(通过此例子了解M 阅读全文
posted @ 2021-11-19 16:34 风吹过半夏 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 主要记录自己踩到坑,空指针异常! 实验报告代码如下: package Mapreduce; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Pat 阅读全文
posted @ 2021-11-18 22:46 风吹过半夏 阅读(384) 评论(0) 推荐(1) 编辑
摘要: 程序员修炼之道的序就提出了"注重实效的程序员"的特征,让我印象深刻。 早期的采纳者/快速的改编者。早期的采纳者/快速的改编者。你具有技术和技巧上的直觉、你喜爱试验各种事物﹑给你一样新东西,你很快就能把握它.并把它与你的知识的其余部分结合在起.你的自信出自经验. 好奇。你喜欢提问。那很漂亮——你是怎么 阅读全文
posted @ 2021-11-17 20:59 风吹过半夏 阅读(21) 评论(0) 推荐(0) 编辑
摘要: def test3():#numpy的nan值替换为列平均值 t1=np.arange(12).reshape((3,4)).astype("float") t1[1,2:]=np.nan print("t1:") print(t1) for i in range(t1.shape[1]):#遍历列 阅读全文
posted @ 2021-11-17 17:16 风吹过半夏 阅读(30) 评论(0) 推荐(0) 编辑
摘要: // sejimoshi.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <list> #include<algorithm> using namespace std; class Student { priv 阅读全文
posted @ 2021-11-16 09:35 风吹过半夏 阅读(37) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <list> #include<algorithm> #include<sstream> #include<stack> #include <queue> #include<map> #define _CRT_SECURE_NO_DEPREC 阅读全文
posted @ 2021-11-16 09:33 风吹过半夏 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <list> #include<algorithm> #include<sstream> #include<stack> #include <queue> using namespace std; class Adder { private: 阅读全文
posted @ 2021-11-16 09:32 风吹过半夏 阅读(270) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <list> #include<algorithm> #include<sstream> using namespace std; class PurchaseRequest { private: string purchaseName; i 阅读全文
posted @ 2021-11-16 09:30 风吹过半夏 阅读(33) 评论(0) 推荐(0) 编辑
摘要: # 使用numpy生成数组,得到ndarray类型 t1 = np.array([1, 2, 3, ]) print(t1) print(type(t1)) t2 = np.arange(4, 12, 2) # 2步长 print(t2) t3 = np.array(range(10)) print 阅读全文
posted @ 2021-11-16 09:26 风吹过半夏 阅读(24) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 44 下一页