正文之前
因为Hadoop测试需要很多的数据,所以我还是习惯性的用脚本语言来写数据集生成脚本,所以也就有了如下的内容了
正文
import randomfor i in range(200): #生成随机数,浮点类型 a = random.uniform(10, 30) #控制随机数的精度round(数值,精度) print(str(round(a,1)) + " cat" +str(i) )
结果如下:
23.4 cat021.8 cat111.0 cat222.3 cat328.8 cat429.5 cat512.6 cat624.8 cat712.1 cat826.2 cat927.1 cat1025.2 cat1122.6 cat1217.2 cat1318.9 cat1421.1 cat1517.5 cat1611.8 cat1720.4 cat1827.4 cat1912.2 cat2029.3 cat2119.0 cat2211.0 cat2321.0 cat2422.0 cat2526.9 cat2628.6 cat2729.9 cat2820.3 cat2921.5 cat3011.1 cat3123.2 cat3217.3 cat3315.5 cat3424.5 cat3513.5 cat3611.0 cat3714.5 cat3810.0 cat3915.4 cat4028.2 cat4115.5 cat4211.4 cat4321.2 cat4427.7 cat4517.5 cat4621.7 cat4725.0 cat4825.4 cat4911.9 cat5013.5 cat5110.5 cat5212.1 cat5315.3 cat5427.0 cat5523.8 cat5621.1 cat5726.2 cat5811.2 cat5920.5 cat6014.5 cat6120.3 cat6215.4 cat6311.5 cat6425.7 cat6523.3 cat6612.2 cat6711.9 cat6819.7 cat6918.5 cat7015.2 cat7124.7 cat7222.4 cat7323.0 cat7420.4 cat7512.4 cat7612.0 cat7713.8 cat7824.7 cat7922.4 cat8024.0 cat8129.1 cat8211.1 cat8329.5 cat8413.1 cat8526.3 cat8611.4 cat8726.8 cat8817.3 cat8927.2 cat9025.6 cat9120.7 cat9222.3 cat9328.9 cat9428.4 cat9517.2 cat9614.9 cat9720.1 cat9827.3 cat9923.5 cat10022.0 cat10112.4 cat10227.3 cat10321.8 cat10415.9 cat10510.5 cat10629.2 cat10720.2 cat10827.0 cat10926.3 cat11013.5 cat11118.8 cat11210.9 cat11315.3 cat11422.3 cat11524.8 cat11626.0 cat11712.1 cat11820.5 cat11921.0 cat12024.9 cat12126.1 cat12225.7 cat12324.4 cat12413.3 cat12525.7 cat12617.7 cat12717.7 cat12824.4 cat12929.8 cat13027.6 cat13128.7 cat13214.1 cat13312.9 cat13423.8 cat13522.7 cat13629.1 cat13724.0 cat13822.9 cat13925.0 cat14023.1 cat14117.7 cat14210.7 cat14329.4 cat14419.7 cat14519.6 cat14612.4 cat14723.5 cat14814.2 cat14922.2 cat15014.9 cat15117.1 cat15210.0 cat15321.8 cat15427.5 cat15521.3 cat15629.7 cat15718.4 cat15823.1 cat15915.2 cat16016.2 cat16122.4 cat16229.2 cat16312.2 cat16417.1 cat16515.0 cat16617.9 cat16723.7 cat16828.5 cat16923.5 cat17018.8 cat17120.8 cat17222.5 cat17327.1 cat17414.2 cat17525.2 cat17620.5 cat17721.1 cat17820.7 cat17926.3 cat18012.8 cat18110.4 cat18211.5 cat18315.6 cat18414.6 cat18522.6 cat18623.2 cat18711.8 cat18821.1 cat18915.4 cat19022.5 cat19122.1 cat19212.5 cat19312.8 cat19425.5 cat19523.2 cat19615.7 cat19727.2 cat19816.0 cat199
正文之后
待会如果测试成功了,那么我的Hadoop Top10算法也就算是差不多吃透了。。哈哈~
作者:HustWolf
链接:https://www.jianshu.com/p/7ead30ca5fe9
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦