Hello World

C

1
2
3
4
5
6
#include<stdio.h>
int main()
{
printf("hello world\n");
return 0;
}

C++

1
2
3
4
5
6
7
#include<iostream>
using namespace std;
int main()
{
cout << "hello world" << endl;
return 0;
}

java

1
2
3
4
5
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}

python

1
print("hello world")

html+CSS+JS

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>hello world</title>
<style>
#hello{
color: red;
}
</style>
</head>
<body>
<div id="hello">hello world</div>
<script>
console.log("hello world");
</script>
</body>
</html>

shell

1
echo "hello world"

HDFS

1
hdfs dfs -put xxx

Vue

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<template>
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
name: 'App',
components: {
HelloWorld
}
}
</script>

<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>

SpringBoot

1
2
3
4
@GetMapping("/hello")
public String hello(){
return "HelloWorld";
}

mysql

1
2
mysql -u root -p
select * form tables;

Arkts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@Entry
@Component
struct Index {
@State message: string = 'Hello World'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
}
.width('100%')
}
.height('100%')
}

}

Scala

1
2
3
4
5
object HelloWorld {
def main(args: Array[String]): Unit = {
println("hello scala")
}
}


Hello World
https://leaf-domain.gitee.io/2030/12/31/hello-world/
作者
叶域
发布于
2030年12月31日
许可协议