这个坛子里,都是大佬,说话又好听,可惜我没什么一妓之长,只好表演个精通6门编程语言了!!!
- Python
print("Hello, World!")
- Go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
- Rust
fn main() {
println!("Hello, World!");
}
- C
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
- C++
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}
- Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}