写出十种不同编程语言的输出语句
时间: 2023-05-17 11:05:39 浏览: 80
1. Java: System.out.println("Hello, World!");
2. Python: print("Hello, World!")
3. C++: cout << "Hello, World!" << endl;
4. JavaScript: console.log("Hello, World!");
5. Ruby: puts "Hello, World!"
6. PHP: echo "Hello, World!";
7. Swift: print("Hello, World!")
8. Kotlin: println("Hello, World!")
9. Go: fmt.Println("Hello, World!")
10. Rust: println!("Hello, World!");
阅读全文