- 博客(12)
- 收藏
- 关注
原创 SQL运行顺序
SQL运行顺序(1)from (2) join (3) on (4) where (5)group by (6) avg,sum… (组函数) (7)having (8) select (9) distinct (10) order by(1)from (2) join (3) on (4) where (5)group by (6) avg,sum… (组函数) (7)having (8) select (9) distinct (
2023-07-13 10:55:52 76
原创 html 9_16
<html> <head> <title>标题标记实验</title> <meta http-equiv="Content-Type" content="text/html; charset=utf8"> </head> <h1 align="center">一级标题居中</h1> <h2 align="right">二级标题右对齐</h2> 这是普通文字!! &
2020-09-16 11:04:15 151
原创 利用MapReduce进行数据清洗
使用MapReduce,去除num.txt中以2开头的数字,将结果保存为num2.txtpackage MR_9_12;import java.io.IOException;import org.apache.hadoop.io.IntWritable;import org.apache.hadoop.io.LongWritable;import org.apache.hadoop.io.NullWritable;import org.apache.hadoop.io.Text;imp
2020-09-14 09:42:08 1708
原创 Java在0-100的范围内生成随机整数
package MR_9_12;import java.io.*;import java.util.Random;;public class MakeDataTest { public static void main(String[] args){ String filepath = "src\\data"; filepath +="\\1.txt"; System.out.println(filepath); try { File file = new File(fil
2020-09-14 09:36:10 2136
原创 震惊!scala一行代码实现wordcount!!!
import scala.io.Sourceobject wordcount1 { def main(args: Array[String]): Unit = { Source.fromFile("D:\\Big_Data\\myscala\\data\\words.txt").getLines().flatMap(_.split(",")).map((_, 1)).toList.groupBy(_._1).map(x => (x._1, x._2.map(_._2).sum)).for
2020-08-07 09:53:50 195 5
原创 scala的match匹配基础代码
//scala match匹配object mohsi { def main(args: Array[String]): Unit = { def is(a:String) = a match { case "wzh" => println("han han") case "jhk" => println("666") case "ydl" => println("no no no") case "UV" =&.
2020-07-30 10:46:10 141 4
原创 C语言结构体实现学生信息管理系统
#include <stdio.h>#include <string.h>#include <math.h>#include <stdlib.h>typedef struct student{int stu_num;//学号char name[20];//姓名int math;//数学成绩int enl;//英语成绩int ji;//计算机成绩int sum;//总成绩double avg;//平均成绩}Stu;Stu stu[10
2020-06-21 19:09:29 1255 2
转载 pip更新不超过别害怕,试试这三个命令!
1,使用python -m pip install --upgrade pip升级失败2,使用python -m pip install -U --force-reinstall pip依然失败3,使用pip install --user --upgrade pip成功升级
2020-05-20 06:16:26 273
原创 这可能是你看过WordCount最详细的代码!!!
package Wordcount;import javax.print.DocFlavor;import javax.swing.plaf.synth.SynthLookAndFeel;import java.awt.*;import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.io.*;import java.sql.SQLOutput;import j
2020-05-17 18:15:45 194
原创 遍历HashMap基本方法
package mAp;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Set;public class TestMap { public static void main(String[] args) { Map<Integer,String> map=new HashMap<>(); map.put
2020-05-12 23:00:08 133
原创 java字节流复制视频文件
package io_511;import java.io.*;public class HomeWork { public static void main(String[] args) throws IOException { //InputStreamReader isr= new InputStreamReader(new FileInputStream("C:\\Users\\riying\\Desktop\\课程文件夹\\java\\IMG_6365.MP4"));
2020-05-12 22:00:49 262
原创 java面向对象基础性代码
#java面向对象基础##简单的面向对象import java.util.Scanner;public class Circle {static double r; // 圆半径static double PI=3.1415926;// 圆周率// 带参构造方法public Circle(double R){r = R;}// 无参构造方法public Circle(){t...
2020-03-13 16:52:46 115
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人