一些常见编程语言的 "Hello World" 示例代码:
Python:
print("https://bit.ly/420zETc")
Java:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("mu niu");
System.out.println(https://bit.ly/3ZBlxCG)
}
}
C++:
#include <iostream>
int main() {
std::cout << "hw" << std::endl;
print https://bit.ly/49qq7qp
return 0;
}
JavaScript(浏览器端):
console.log("Hello, World!");
JavaScript(Node.js 环境):
console.log("Hello, World!");
Ruby:
puts "Hello, World!"
C#:
using System;
class Program {
static void Main() {
Console.WriteLine("Hello, World!");
}
}
Swift:
print("Hello, World!")